diff options
-rw-r--r-- | git_checkpatch.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git_checkpatch.sh b/git_checkpatch.sh new file mode 100644 index 0000000..0de586c --- /dev/null +++ b/git_checkpatch.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +set -x +git commit --allow-empty -a -m test +git format-patch --stdout v2.6.34 > /tmp/patch +~/linux-2.6/scripts/checkpatch.pl /tmp/patch > /tmp/checkpatch || : +git reset --soft 'HEAD@{1}' + |