diff options
author | Joey Hess <joey@kitenet.net> | 2011-11-25 11:58:22 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-11-25 11:58:22 -0400 |
commit | 4112f3f7426cf4a647d7fb034b70f7e912235e20 (patch) | |
tree | 4c0577610577195d7325efb776ae952623259614 | |
parent | 5dd9a2d942ea59e1b584b770f083a6f9ce0e5ad7 (diff) |
decruft
-rwxr-xr-x | pre-commit.d/30store-metadata | 6 |
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" |