summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpre-commit.d/30store-metadata6
1 files changed, 0 insertions, 6 deletions
diff --git a/pre-commit.d/30store-metadata b/pre-commit.d/30store-metadata
index d1facd6..2e35e6c 100755
--- a/pre-commit.d/30store-metadata
+++ b/pre-commit.d/30store-metadata
@@ -20,12 +20,6 @@ filter_ignore() {
fi
if [ "$VCS" = darcs ] && [ -e "$ignorefile" ]; then
- # Spaces embedded into patterns would break it.
- # But really, why would anyone want to use ' ' instead of '\s' ?
- #patterns=$( grep -v '^[[:space:]]*\(#\|$\)' "$ignorefile" | xargs -n 1 printf " -e %s" )
- #grep -Ev $patterns
- #unset patterns
- # Alternative using a temp file
patternsfile="$( mktemp -t etckeeper-$VCS.XXXXXXXXXX )"
grep -v '^[[:space:]]*\(#\|$\)' "$ignorefile" > "$patternsfile" || true
grep -Evf "$patternsfile"