News for hackers. Stuff that matters.
Re:Why GNU grep is fast (2010) by atwood22 on Sunday July 24, 2022 @12:20PM (#32214905)
Do you know about “git grep”? It’s like grep but only greps files tracked by git. Very useful.
Re:Why GNU grep is fast (2010) by wonderbore on Sunday July 24, 2022 @11:44PM (#32220285)
Why use a git-specific tool when a generic one (rg) works just as well, even from a parent directory?

I often use rg to search code across repositories so it's useful to have that regardless of grep and git

Re:Why GNU grep is fast (2010) by Tempest1981 on Monday July 25, 2022 @12:31AM (#32220506)
Often a directory contains a mix of source files (in git) and output files (usually in .gitignore). But maybe rg automatically handles this?
Re:Why GNU grep is fast (2010) by jraph on Monday July 25, 2022 @02:18AM (#32221108)
It does
Re:Why GNU grep is fast (2010) by jraph on Monday July 25, 2022 @02:18AM (#32221106)
I didn't, seems worth giving a look.