]> git.sur5r.net Git - openocd/commitdiff
make checkpatch.sh take an optional 'since' refspec
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Thu, 1 Dec 2011 20:25:43 +0000 (21:25 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 6 Dec 2011 20:58:02 +0000 (20:58 +0000)
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>
tools/checkpatch.sh

index 33b6dfc1734ee6e18ef0bf7b832971af1cd914f4..e1dd267f9770b6f3eda0ed3c801a4778a9b929f8 100755 (executable)
@@ -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