aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2011-12-01 21:25:43 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2011-12-06 20:58:02 +0000
commit122509a0dc2e33b0526bdb6d16511489fa87ffe0 (patch)
tree99d06fda11e138fb0ad644820abda0f93d3af5cb /tools
parent330b0d68c278a1122193106d4d390d6105981918 (diff)
downloadriscv-openocd-122509a0dc2e33b0526bdb6d16511489fa87ffe0.zip
riscv-openocd-122509a0dc2e33b0526bdb6d16511489fa87ffe0.tar.gz
riscv-openocd-122509a0dc2e33b0526bdb6d16511489fa87ffe0.tar.bz2
make checkpatch.sh take an optional 'since' refspec
Change-Id: I793778037db08bd5462f61b9bcafd484708cc1b6 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/250 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
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