diff options
author | Rike-Benjamin Schuppner <rikebs@debilski.de> | 2016-02-29 14:55:51 +0100 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-29 11:12:04 -0400 |
commit | 6d454b46df7570eb82fd9d72ede7d81bf1320351 (patch) | |
tree | c2be0e2d03f713560b21a6e5f9b334bdec0adf0f /pre-commit.d/20warn-problem-files | |
parent | e782c9b612b20ef8d14369d624bf069729899670 (diff) |
Check several files at a time with git ls-files.
Diffstat (limited to 'pre-commit.d/20warn-problem-files')
-rwxr-xr-x | pre-commit.d/20warn-problem-files | 4 |
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 |