3 ms·
git grep is shallow: only current git repo, rg is fully recursive, all submodules and also untracked (and not ignored) directories. In some trees, git grep wil
by kzrdude 3y ago
git grep is shallow: only current git repo, rg is fully recursive, all submodules and also untracked (and not ignored) directories.
In some trees, git grep will be a lot faster because it searches a smaller part of it.
- ctenb 3y agoNo, git grep can recurse, if you pass the flag, just like all other git commands. --recurse-submodules