]> git.sur5r.net Git - openocd/blobdiff - tools/checkpatch.sh
tools: add checkpatch script
[openocd] / tools / checkpatch.sh
diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh
new file mode 100644 (file)
index 0000000..33b6dfc
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+#
+
+git format-patch -M --stdout HEAD^ | tools/scripts/checkpatch.pl - --no-tree