5 ms·
I use `git grep` all the time, and I'm always amazed how crazy fast it is on huge repos. And, of course, that also uses gitignore, has many parameters (includin
by tompazourek 5y ago
I use `git grep` all the time, and I'm always amazed how crazy fast it is on huge repos. And, of course, that also uses gitignore, has many parameters (including path filters after --).
I guess ripgrep might be worth trying. Anyone used both of these who can compare? I'd like to know what I'm missing out on.
- BiteCode_dev 5y agorip grep works outside of a git repo
- arunix 5y agoI find the output of rg easier to read vs git grep. However the latter has some useful options ("--and", "--or") that rg lacks: https://github.com/BurntSushi/ripgrep/issues/875#issuecomment-378089924 https://github.com/BurntSushi/ripgrep/issues/875#issuecommen...