aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkpatch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh
index 33b6dfc..e1dd267 100755
--- a/tools/checkpatch.sh
+++ b/tools/checkpatch.sh
@@ -1,4 +1,5 @@
#!/bin/sh
#
-git format-patch -M --stdout HEAD^ | tools/scripts/checkpatch.pl - --no-tree
+since=${1:-HEAD^}
+git format-patch -M --stdout $since | tools/scripts/checkpatch.pl - --no-tree