chiark / gitweb /
exclude .git
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 15 Apr 2008 15:51:17 +0000 (15:51 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 15 Apr 2008 15:51:17 +0000 (15:51 +0000)
wcgrep

diff --git a/wcgrep b/wcgrep
index 2f19476..92311f3 100755 (executable)
--- a/wcgrep
+++ b/wcgrep
@@ -54,6 +54,6 @@ for (( i=1; i <= $arg_count; i++ )); do
     fi
 done
 
-find $pathargs -regex ${WCGREP_IGNORE:-'.*~$\|.*/\(\.svn\|\{arch\}\|\.bzr\)\(/\|$\)'} -prune -o \
+find $pathargs -regex ${WCGREP_IGNORE:-'.*~$\|.*/\(\.svn\|\{arch\}\|\.bzr\|\.git\)\(/\|$\)'} -prune -o \
     -type f -print0 | xargs -r0 ${WCGREP_GREP:-grep} ${WCGREP_GREPARGS:--HnI} \
     $grepargs "$pattern"