News for hackers. Stuff that matters.
Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by xorcist on Monday January 08, 2018 @11:43AM (#16097905)
Or just use "grep". It is what it's there for.

Use --include and --exclude-dirs to do what you describe. (The latter is a good idea to set in your GREP_OPTIONS, unless you actually search .git directories.)

Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by okdana on Monday January 08, 2018 @12:21PM (#16098222)
GREP_OPTIONS is deprecated in GNU grep since i think 2.20. It will be removed in a future version, and until then it's going to print an irritating warning message every time you use it.

(I don't think there's any such plan for the various BSD greps, so if you use those exclusively you're probably fine.)

Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by petdance on Monday January 08, 2018 @12:51PM (#16098421)
Good to know. I've been considering dropping ACK_OPTIONS, and this just might put me over the edge.