Hacker News new | past | comments | ask | show | jobs | submit login

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.




No, git grep can recurse, if you pass the flag, just like all other git commands. --recurse-submodules




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: