-
-
Notifications
You must be signed in to change notification settings - Fork 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
Directory paths are ignored even if negative-ignore exists for files underneath it #1050
Comments
Yeah, this is one of the cases where it's tough for ripgrep to behave the same as git here. I think there have been bugs reported on this issue in the past, but I can't find them. The fundamental issue is that Two thoughts:
|
No, */* is pretty explicit about only matching 2 levels down. I think this would take it further away from the behaviour of git.
I think this would be the correct approach, how about not implementing the optimisation if there exists a ! whitelist rule matching potentially anything below that directory? |
Yes, that's what I mean by "smarter." There's no infrastructure for that kind of analysis yet. But it sounds like we should at least try to understand why |
In fact the ignore-file implementation seems to be quite broken, I just discovered that an entry like |
That is entirely separate from this issue. Please open a new issue with an MRE. |
Running over https://salsa.debian.org/rust-team/debcargo-conf/:
The text was updated successfully, but these errors were encountered: