Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing a .gitignore file with a flag like --ignore-file #378

Closed
casey opened this issue Apr 13, 2020 · 1 comment
Closed

Allow passing a .gitignore file with a flag like --ignore-file #378

casey opened this issue Apr 13, 2020 · 1 comment

Comments

@casey
Copy link
Owner

casey commented Apr 13, 2020

Adding the ability to pass a .gitignore file to imdl torrent create would allow easily creating a torrent from a git repo:

$ imdl torrent create --input repo --ignore-file repo/.gitignore

I think, but am not totally certain, that globset, the library intermodal uses for --glob parsing, takes the same syntax as .gitignore. If so, this could be easily supported.

@casey
Copy link
Owner Author

casey commented Apr 23, 2020

Done by @Celeo! You still can't pass a custom ignore file by flag, but I think this satisfies the most important use case of this feature. If you want to be able to pass a new ignore file by flag, ping this issue or open a new one! It would be very easy to add, now that we're using the ignore crate.

@casey casey closed this as completed Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant