▲ | burntsushi 13 hours ago | |
This might help: https://news.ycombinator.com/item?id=45629497 That is, you can whitelist specific hidden files/directories. There is no way to tell ripgrep to "search precisely the set of tracked files in git." ripgrep doesn't read git repository state. It just looks at gitignore files and automatically ignores all hidden and binary files. So it make it work more like git, you might consider whitelisting the hidden files you want to search. To make it work exactly like git, you need to do the `git ls-files -z | xargs -0 rg ...` dance. |