How to make ripgrep ignore git untracked files? #3130
-
I would like to ignore files that are not tracked by git. In other words, only search on files that are tracked by git. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Aug 20, 2025
Replies: 1 comment
-
You will need to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BurntSushi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will need to use
git ls-files
for this. ripgrep only looks at ignore rules. It doesn't try to figure out whether a file is tracked or not. I have no plans to change that limitation.