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
-
It's a weird request so sorry about that. But wondering if this is possible. Would help me a lot. Something like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Oct 26, 2023
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kartikynwa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.