How to make rg _always_ look at all files under Git control #2436
-
I generally love how |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
ripgrep generally has three different types of automatic filtering, as documented in the guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#automatic-filtering The first is filtering based on Generally, they are not connected with one another. So when you pass With that said, you can make ripgrep search For example: Line 1 in 44fb9fc Also note that this isn't quite the same as the question you asked. Or at least, the question you asked is a little broader. |
Beta Was this translation helpful? Give feedback.
-
BTW: thanks so much for your answers! |
Beta Was this translation helpful? Give feedback.
ripgrep generally has three different types of automatic filtering, as documented in the guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#automatic-filtering
The first is filtering based on
.gitignore
,.ignore
and.rgignore
. The second is hidden files/directories. The third is binary files.Generally, they are not connected with one another. So when you pass
--hidden
to ripgrep to squash the second type of automatic filtering, it does so for all hidden files.With that said, you can make ripgrep search
.npmrc
and not.other
by explicitly whitelisting it. For example,echo '!.npmrc' > .ignore
will tell ripgrep to search that file even though it's hidden.For example:
ri…