Paul Eggert Sat, 08 Mar 2014 10:58:27 -0800
That option is already there, e.g.: grep -r --exclude-dir=.git PATTERN
should work starting with grep 2.12.