-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Agignore not using the same patterns as gitignore #367
Comments
What version of ag are you using? This appears to be fixed in master. |
I've |
Please try the latest version of ag: 0.22.0 |
@ggreer Thank you. |
...as long as the folders are prefixed by |
Now I'm using |
@pablox-cl Same here. |
Same issue here on 0.23.0 |
A simple workaround for the current version: just put the leading slash. |
Using |
Under |
Ok, here's the issue:
So this means, ag and git are interpreting different a directive, that at least to gitignore it's the same (so it seems, I don't use leading slashes and I believe I haven't had any drawbacks). According to git documentation:
I don't know how ag interprets leading slashes, but clearly they do different.
It seems that:
It's the same for git, they don't have trouble tracking files inside, like
public/vendor/bundle/a_file.txt
.The text was updated successfully, but these errors were encountered: