summaryrefslogtreecommitdiff
path: root/pre-commit.d/30store-metadata
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-11-25 11:58:22 -0400
committerJoey Hess <joey@kitenet.net>2011-11-25 11:58:22 -0400
commit4112f3f7426cf4a647d7fb034b70f7e912235e20 (patch)
tree4c0577610577195d7325efb776ae952623259614 /pre-commit.d/30store-metadata
parent5dd9a2d942ea59e1b584b770f083a6f9ce0e5ad7 (diff)
decruft
Diffstat (limited to 'pre-commit.d/30store-metadata')
-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"