Subject: Re: feature request: command line option to exclude vcs directories when recursive searching

From: Paul Eggert <[email-masked]>
Date: Sat, 08 Mar 2014 10:56:32 -0800

That option is already there, e.g.:

grep -r --exclude-dir=.git PATTERN

should work starting with grep 2.12.