From 122509a0dc2e33b0526bdb6d16511489fa87ffe0 Mon Sep 17 00:00:00 2001 From: Andreas Fritiofson Date: Thu, 1 Dec 2011 21:25:43 +0100 Subject: [PATCH] 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 --- tools/checkpatch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 33b6dfc17..e1dd267f9 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