Closed deepfire closed 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.
Wilfred, oh, sorry, I was under the delusion I've submitted it to ag's bugtracker..
No worries. Closing in favour of https://github.com/ggreer/the_silver_searcher/issues/285
.gitignore has absolute path syntax, for specific, repository-root -relative ignores:
/foo/bar
which ignores exactly
$(REPOROOT)/foo/bar
, as opposed tofoo/bar
which would ignore any
bar
contained immediately within anyfoo
.Ag, however, treats thes repo-relative absolutes as absolute absolutes.