X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tools%2Fcheckpatch.sh;h=e1dd267f9770b6f3eda0ed3c801a4778a9b929f8;hb=HEAD;hp=0a630a248355e7d3453fb4c6e2f6828179d108d0;hpb=76a1524b5e4b89149d7126b681c935de4aaa441a;p=fw%2Fopenocd diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 0a630a248..7375fc2b6 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}..