From 4112f3f7426cf4a647d7fb034b70f7e912235e20 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 25 Nov 2011 11:58:22 -0400 Subject: decruft --- pre-commit.d/30store-metadata | 6 ------ 1 file changed, 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" -- cgit v1.2.3