-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consider auto-excluding files matched by gitignore files #174
Comments
(Working on this.) |
Hi! I thought using |
+1 for this. As for using the |
I like that the
https://docs.rs/ignore/latest/ignore/struct.WalkBuilder.html#ignore-rules (reading of |
Definitely happy to support this! I just haven't personally prioritized the work since most exclusions are doable with the current configuration settings, even if less convenient. But we should do it. |
Personally I'm mostly missing a way to ignore files only on my system, in projects where I don't have significant enough stake to change the exclusions they've set up. At best I could maybe make alias |
Just a slight bump on this, we've had some issues sneak in with the pyproject.toml and .gitignore lists getting out of sync which caused us to accidentally lint a GB or so of third party code, would be convenient if those automatically sync'd. |
(I still want to explore this, and do so via the ignore crate. Just need to find time.) |
I'll give this a try (but my newborn just came home today so bear with me :)) |
@charliermarsh 1. Congratulations!! 🎉 2. you're a beast. We're not blocked on this by any means so take care of yourself! |
@jhallard - Thank you so much! I just couldn't help but share :) |
This is going out in the next release: #1234. The behavior is documented in the README (and in |
Patterns would need to be read from:
.gitignore
file in the same directory as the path, or in any parent directory (the latter allows tools to put a.gitignore
file with*
in the directory they create to auto-exclude themselves)$GIT_DIR/info/exclude
(allows user-specific patterns for a specific repository)core.excludesFile
(allows global user-specific patterns, I personally use this one)Reference: https://git-scm.com/docs/gitignore
This might come at a performance cost but it definitely would be a useful feature.
The text was updated successfully, but these errors were encountered: