From: Andreas Fritiofson Date: Thu, 1 Dec 2011 20:25:43 +0000 (+0100) Subject: make checkpatch.sh take an optional 'since' refspec X-Git-Tag: v0.6.0-rc1~378 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=122509a0dc2e33b0526bdb6d16511489fa87ffe0;ds=sidebyside make checkpatch.sh take an optional 'since' refspec Change-Id: I793778037db08bd5462f61b9bcafd484708cc1b6 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/250 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 33b6dfc173..e1dd267f97 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