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>
__archive__
Andreas Fritiofson 2011-12-01 21:25:43 +01:00 committed by Spencer Oliver
parent 330b0d68c2
commit 122509a0dc
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/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