diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2011-12-01 21:25:43 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-12-06 20:58:02 +0000 |
commit | 122509a0dc2e33b0526bdb6d16511489fa87ffe0 (patch) | |
tree | 99d06fda11e138fb0ad644820abda0f93d3af5cb /tools | |
parent | 330b0d68c278a1122193106d4d390d6105981918 (diff) |
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-x | tools/checkpatch.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 33b6dfc1..e1dd267f 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 |