Skip to content

Is it possible to make ripgrep respect a .gitignore (or any similar ignore file) even if a given directory is not a git repository? #2639

Answered by BurntSushi
kartikynwa asked this question in Q&A
Discussion options

You must be logged in to vote

Your example snippet doesn't seem to line up with the question. You're showing a snippet where ripgrep does respect the gitignore file despite it not being a git repository. Or are you showing what you want to have happen?

Have you read the guide? It discusses other ignore files such as .ignore and .rgignore. And there is also the --no-require-git flag.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kartikynwa
Comment options

Answer selected by kartikynwa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants