3 ms·
`git grep` works just fine and it also pretty quick. i'm sure it isn't 100% the same use-case, but most of the time i'm looking inside a repo anyway, and for th
by guitarbill 9y ago
`git grep` works just fine and it also pretty quick. i'm sure it isn't 100% the same use-case, but most of the time i'm looking inside a repo anyway, and for the other times i can just go get a coffee
- burntsushi 9y agoThe blog post linked in the GP contains benchmarks, including `git grep`. TL;DR is that for simple queries, `git grep` is going to perform about as well as ripgrep. For more complex queries, ripgrep can be faster. If you're on Windows, ripgrep will also (seamlessly) search UTF-16.
- guitarbill 9y agoi'm definitely not anti-ripgrep, but OP did say "I'm surprised that ripgrep is so low" - i'm not surprised at all, just trying to point out why. it's just yet another tool which i'd have to learn, and yet another tool that isn't going to be installed on the remote machine. is the productivity win worth installing it, let alone learning it compared to going from `grep` to `git grep`? for me probably not, diminishing returns. doesn't mean it isn't great software! (also, for the sake of stats, homebrew is macOS only, although i appreciate the info)