grepid: ignore .git directories

This commit is contained in:
Josh Holtrop committed 2011-09-13 10:41:02 -04:00
1 parent 88483e4b2e
commit d0564ebb7c
1 file changed
+2 -1
+2 -1
View File
@@ -2,4 +2,5 @@
id="$1" id="$1"
shift shift
exec grep --exclude-dir .svn --color=auto -R '\<'"${id}"'\>' "$@" exec grep --exclude-dir .svn --exclude-dir .git --color=auto -R \
'\<'"${id}"'\>' "$@"