-
Notifications
You must be signed in to change notification settings - Fork 20
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
A filter that includes .git #38
Comments
I think we can generalize this to a function that isn't specific to |
I guess combining filters with filterDNF [
[ (only ".git") ]
[ gitignore (not "foo" ) ]
] For a filter that includes all of |
Doesn't have to be normal form though and my thinking was that set terminology is more natural here, because at this level we're thinking about sets of files rather than bools. |
This is a good first intuition but not entirely accurate as illustrated by the example where the union of |
Just happen to come across this issue again, and indeed, I now also think of it as sets of files! 😆 NixOS/nixpkgs#222981 |
Since I needed this myself, here is a gitignore filter that includes the
.git
directory itself (which is often needed for runninggit
commands):It might be worth adding a filter with this functionality to this library
The text was updated successfully, but these errors were encountered: