hooks:pre-commit: Fix symlink diff-filter
Renames are uninteresting for the link check. But we do care about change in the type of the file.
This commit is contained in:
@@ -43,7 +43,7 @@ if ! git diff-index --check --cached $against --; then
|
||||
fi
|
||||
|
||||
# Check that added symlinks are neither absolute nor broken
|
||||
git diff --staged --name-only --diff-filter=AR $against \
|
||||
git diff --staged --name-only --diff-filter=AT $against \
|
||||
| {
|
||||
abort=0
|
||||
while read -r line; do
|
||||
|
||||
Reference in New Issue
Block a user