chiark / gitweb /
add support for excluding .bzr directories
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 17 Jan 2006 23:13:00 +0000 (23:13 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 17 Jan 2006 23:13:00 +0000 (23:13 +0000)
wcgrep

diff --git a/wcgrep b/wcgrep
index a68ad3755fce9969fb5dc669daa32c2cca445b07..2f19476cc46f7d133b12c5fa0b9235bf080ce449 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\}\)\(/\|$\)'} -prune -o \
+find $pathargs -regex ${WCGREP_IGNORE:-'.*~$\|.*/\(\.svn\|\{arch\}\|\.bzr\)\(/\|$\)'} -prune -o \
     -type f -print0 | xargs -r0 ${WCGREP_GREP:-grep} ${WCGREP_GREPARGS:--HnI} \
     $grepargs "$pattern"