summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRike-Benjamin Schuppner <rikebs@debilski.de>2016-02-29 14:55:51 +0100
committerJoey Hess <joeyh@joeyh.name>2016-02-29 11:12:04 -0400
commit6d454b46df7570eb82fd9d72ede7d81bf1320351 (patch)
treec2be0e2d03f713560b21a6e5f9b334bdec0adf0f
parente782c9b612b20ef8d14369d624bf069729899670 (diff)
Check several files at a time with git ls-files.
-rwxr-xr-xpre-commit.d/20warn-problem-files4
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-commit.d/20warn-problem-files b/pre-commit.d/20warn-problem-files
index f28d5ac..4ffbfd1 100755
--- a/pre-commit.d/20warn-problem-files
+++ b/pre-commit.d/20warn-problem-files
@@ -12,8 +12,8 @@ elif [ "$VCS" = hg ]; then
special=$(find . ! -type d ! -type f ! -type l | exclude_internal) || true
hardlinks=$(find . -type f ! -links 1 -exec hg status {} \; | exclude_internal ) || true
elif [ "$VCS" = git ]; then
- special=$(find . ! -type d ! -type f ! -type l -exec git ls-files --exclude-standard --cached --others {} \; | exclude_internal) || true
- hardlinks=$(find . -type f ! -links 1 -exec git ls-files --exclude-standard --cached --others {} \; | exclude_internal) || true
+ special=$(find . ! -type d ! -type f ! -type l -exec git ls-files --exclude-standard --cached --others {} + | exclude_internal) || true
+ hardlinks=$(find . -type f ! -links 1 -exec git ls-files --exclude-standard --cached --others {} + | exclude_internal) || true
else
special=""
fi