Wilfred / ag.el

An Emacs frontend to The Silver Searcher
http://agel.readthedocs.org/en/latest/
524 stars 61 forks source link

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

Closed deepfire closed 10 years ago

deepfire commented 10 years ago

.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 commented 10 years ago

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 commented 10 years ago

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

Wilfred commented 10 years ago

No worries. Closing in favour of https://github.com/ggreer/the_silver_searcher/issues/285