diff options
-rwxr-xr-x | util/gitconfig/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/gitconfig/pre-commit b/util/gitconfig/pre-commit index 0f1306288e..2aed957df9 100755 --- a/util/gitconfig/pre-commit +++ b/util/gitconfig/pre-commit @@ -20,7 +20,7 @@ set -u # -o nounset %MAKE% lint-stable -PATCHDIFF=$(git diff --cached) +PATCHDIFF=$(git diff --cached --src-prefix=a/ --dst-prefix=b/) if printf "%s\n" "$PATCHDIFF" | grep -q "@@"; then echo echo "Running checkpatch" |