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

repository-absolute paths in .gitignore are not recognized #30

Closed
deepfire opened this issue Dec 20, 2013 · 3 comments
Closed

repository-absolute paths in .gitignore are not recognized #30

deepfire opened this issue Dec 20, 2013 · 3 comments

Comments

@deepfire
Copy link

.gitignore has absolute path syntax, for specific, repository-root -relative ignores:

/foo/bar

which ignores exactly $(REPOROOT)/foo/bar, as opposed to

foo/bar

which would ignore any bar contained immediately within any foo.

Ag, however, treats thes repo-relative absolutes as absolute absolutes.

@Wilfred
Copy link
Owner

Wilfred commented Dec 20, 2013

Hmm, sounds like an upstream bug I'm afraid. Ag.el doesn't look at .gitignore, it's built-in functionality to ag itself. Could you open a ticket here?

That said, I'm not surprised. Ag's .gitignore parsing isn't perfect (related: #15) and it sometimes misses subtleties like this. I can't see any obvious workarounds, although if you're trying to ignore files with a different extension, ag-files might be useful.

@deepfire
Copy link
Author

Wilfred, oh, sorry, I was under the delusion I've submitted it to ag's bugtracker..

@Wilfred
Copy link
Owner

Wilfred commented Dec 21, 2013

No worries. Closing in favour of ggreer/the_silver_searcher#285

@Wilfred Wilfred closed this as completed Dec 21, 2013
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