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

.gitignore from parent folders? #883

Open
cpitclaudel opened this issue Apr 14, 2016 · 3 comments · May be fixed by #1017
Open

.gitignore from parent folders? #883

cpitclaudel opened this issue Apr 14, 2016 · 3 comments · May be fixed by #1017

Comments

@cpitclaudel
Copy link

Hi,

Is there a way to tell ag to use .gitignore files from parent directories as well? Otherwise, starting a search from a subdirectory returns lots of irrelevant results.

Thanks!
Clément.

@spiffytech
Copy link

spiffytech commented May 10, 2016

👍 ag should walk up the directory tree looking for .gitignores in all parent folders.

@spiffytech
Copy link

Relatedly, if I am in directory repository_root and run ag somestring dir/, ag is not honoring repository_root/.gitignore.

@rr-
Copy link

rr- commented Mar 5, 2018

Duplicate of #144

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

Successfully merging a pull request may close this issue.

3 participants