make checkpatch.sh take an optional 'since' refspec
[openocd.git] / tools / checkpatch.sh
1 #!/bin/sh
2 #
3
4 since=${1:-HEAD^}
5 git format-patch -M --stdout $since | tools/scripts/checkpatch.pl - --no-tree