Skip to content

gitignore interpretation differs between ripgrep and Git #2800

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

You must be logged in to vote

It's expected. Add .git to .rgignore to ignore it.

ripgrep just respects your gitignore as they are written. git on the other hand uses repository state to list tracked files. This ultimately produce different results, especially when files that are gitignored are checked into the repository. This is expected and there are no plans to change that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
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