flash/nor/rp2040: use LOG_TARGET_xxx to show core name
[fw/openocd] / tools / checkpatch.sh
old mode 100644 (file)
new mode 100755 (executable)
index 33b6dfc..7375fc2
@@ -1,4 +1,5 @@
 #!/bin/sh
-#
+# SPDX-License-Identifier: GPL-2.0-or-later
 
-git format-patch -M --stdout HEAD^ | tools/scripts/checkpatch.pl - --no-tree
+since=${1:-HEAD^}
+tools/scripts/checkpatch.pl --git ${since}..