Verified Commit a418265a authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add tool caches to ignored dirs in grep-auto-exclude

parent e3b7114f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
set -eu

VCS_DIRS='.bzr .cvs .git .hg .svn'
TOOL_DIRS='.*_cache'

type which >/dev/null 2>&1 || which() (
	IFS=:
@@ -28,7 +29,7 @@ case "$1" in
	*) CMD=`which grep` ;;
esac

for dir in $VCS_DIRS ${GREP_EXCLUDE_DIRS-}; do
for dir in $VCS_DIRS $TOOL_DIRS ${GREP_EXCLUDE_DIRS-}; do
	set -- --exclude-dir="$dir" "$@"
done