X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tools%2Fcheckpatch.sh;h=e1dd267f9770b6f3eda0ed3c801a4778a9b929f8;hp=33b6dfc1734ee6e18ef0bf7b832971af1cd914f4;hb=346ce2f13f48f36550b2a1a3862801496e20c81b;hpb=e875e321f155a3f610d447055f930a5be0d293a6 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