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:
2025-05-30 00:53:52 +02:00
parent a37080c948
commit 4fba1bbf13

View File

@@ -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