X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tools%2Fcheckpatch.sh;h=e1dd267f9770b6f3eda0ed3c801a4778a9b929f8;hp=0a630a248355e7d3453fb4c6e2f6828179d108d0;hb=HEAD;hpb=76a1524b5e4b89149d7126b681c935de4aaa441a diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 0a630a2483..7375fc2b6d 100755 --- a/tools/checkpatch.sh +++ b/tools/checkpatch.sh @@ -1,5 +1,5 @@ #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later since=${1:-HEAD^} -git format-patch -M --stdout $since | tools/scripts/checkpatch.pl - +tools/scripts/checkpatch.pl --git ${since}..