From 4fba1bbf13642662be80cc819ed94fff43a2caac Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 30 May 2025 00:53:52 +0200 Subject: [PATCH] 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. --- meta/git/hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/git/hooks/pre-commit b/meta/git/hooks/pre-commit index 884dc6f..4d85df8 100755 --- a/meta/git/hooks/pre-commit +++ b/meta/git/hooks/pre-commit @@ -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