That option is already there, e.g.:

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

should work starting with grep 2.12.



Reply via email to