aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkpatch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh
index 0a630a2..7375fc2 100755
--- a/tools/checkpatch.sh
+++ b/tools/checkpatch.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-#
+# SPDX-License-Identifier: GPL-2.0-or-later
since=${1:-HEAD^}
-git format-patch -M --stdout $since | tools/scripts/checkpatch.pl -
+tools/scripts/checkpatch.pl --git ${since}..