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

Ignore files and directories from .gitignore #32

Open
Serhii1011010 opened this issue Feb 26, 2020 · 2 comments
Open

Ignore files and directories from .gitignore #32

Serhii1011010 opened this issue Feb 26, 2020 · 2 comments

Comments

@Serhii1011010
Copy link

Both local and global one

@willnorris
Copy link
Collaborator

I think that's a great idea. I do love how ripgrep and a bunch of other more modern tools support this natively.

Now that we're using https://github.com/bmatcuk/doublestar to power the -ignore flag, I think my ideal implementation would be for doublestar itself (or another library) to provide an API that parses a .gitignore file and returns doublestar-compatible pattern strings. Then we could just append them to any additional patterns provided with the -ignore flag. Bonus points if a single functional call would find all .gitignore files recursively, as well as parse the appropriate global file. I'll try looking around for anything that can do this, but would also love any pointers to libraries folks might know about.

@matheusfm
Copy link

It may be a good idea to have a dedicated file for addlicense, just like there is for .dockerignore, .helmignore, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants