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
Starting directory should override ignored directories #524
Comments
If I use --ignore-dir, in my ackrc or on the command line, and I specify a directory that would normally be ignored on the command line, that directory and its descendants are ignored by ack. This commit adds a test for this situation.
@jamischarles This is resolved in Git HEAD as of 4091db4. |
@hoelzro Awesome. When do you think this will make it into a release? |
@jamischarles That's up to @petdance; I think he's been gearing up for a 2.16 release. |
@jamischarles Can you please test this out on the dev branch, or the newly-released 2.15_02? |
Haven't tested, but what is the desired behavior for this use case:
? Thanks! |
Anything specified on the command line overrides whatever exclusions may happen because of switches. In this case, |
Makes sense to me--thanks for the clarification! |
This went out in 2.16. |
tl;dr Starting directory should override previously set ignore options (including defaults)
This issue is born out of #523
Setup
Tests
ack --ignore-dir=temp Bongo temp
This should return a result but doesn't.ack -f --ignore-dir=temp temp
This should return dir.txt but doesn't.The text was updated successfully, but these errors were encountered: