helm-projectile
helm-projectile copied to clipboard
projectile-helm-ag doesn't respect .gitignore file
In a git project, projectile-helm-ag searches files and directories in .gitignore.
see https://github.com/bbatsov/projectile/issues/709
Any updates on this issue?
I came across this bug. In my case, it only respects the top most .gitignore. If I have a .gitignore inside some directory with additional rules, then those files are not excluded from the search.
/root
- .git
- .gitignore //// these rules are respected
- /some-dir
- .gitignore //// the rules here are not respected
For the time being I copied the rules over from the inner gitignore to the outer one.
To ignore files, you can use the .projectile
file at the project root.
I'll look into a more complete solution, but there's no ETA.
What indexing method do you use? I think that I saw this bug go away after adding this to my init file:
(setq projectile-indexing-method 'git)
Though this could be a red herring... it's still unclear to me.
I want helm-projectile-ag to search in .gitignored directories. How do I do this?