Skip to content

Commit

Permalink
make checkpatch.sh take an optional 'since' refspec
Browse files Browse the repository at this point in the history
Change-Id: I793778037db08bd5462f61b9bcafd484708cc1b6
Signed-off-by: Andreas Fritiofson <[email protected]>
Reviewed-on: http://openocd.zylin.com/250
Tested-by: jenkins
Reviewed-by: Spencer Oliver <[email protected]>
  • Loading branch information
nattgris authored and ntfreak committed Dec 6, 2011
1 parent 330b0d6 commit 122509a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/checkpatch.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 122509a

Please sign in to comment.