summaryrefslogtreecommitdiff
path: root/util/gitconfig/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'util/gitconfig/pre-commit')
-rwxr-xr-xutil/gitconfig/pre-commit2
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"