Skip to content
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

trailing '/' in .gitignore #71

Closed
tianyicui opened this issue Sep 21, 2012 · 2 comments
Closed

trailing '/' in .gitignore #71

tianyicui opened this issue Sep 21, 2012 · 2 comments
Assignees

Comments

@tianyicui
Copy link

From man gitignore:

If the pattern ends with a slash, it is removed for the purpose of the following description, but it would only find a match with a directory. In other words, foo/ will match a directory foo and paths underneath it, but will not match a regular file or a symbolic link foo (this is consistent with the way how pathspec works in general in git).

ag doesn't seem to handle this well, if I have a foo/ in my .gitignore, it will still search in foo/bar.txt. I believe it's a bug.

@ggreer
Copy link
Owner

ggreer commented Sep 21, 2012

Whoops. Yeah that's a bug.

@ghost ghost assigned ggreer Sep 21, 2012
@ggreer ggreer closed this as completed in 766f817 Sep 23, 2012
@ggreer
Copy link
Owner

ggreer commented Sep 23, 2012

That should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants