Browse Source

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>
tags/v0.6.0-rc1
Andreas Fritiofson 11 years ago
committed by Spencer Oliver
parent
commit
122509a0dc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/checkpatch.sh

+ 2
- 1
tools/checkpatch.sh View File

@@ -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

Loading…
Cancel
Save