diff options
author | Noe Rubinstein <nrubinstein@avencall.com> | 2012-01-04 14:07:44 +0100 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@avencall.com> | 2012-01-04 14:07:44 +0100 |
commit | a79ad50c985c04a75a26ee98ec3cf10d531d0b46 (patch) | |
tree | 8bafbb34d34c238ecc3c50746ef4763763fb4146 /git_checkpatch.sh | |
parent | 5c7d677e73bab98741b48940f1e1ec7bbd662c5d (diff) |
add checkpatch
Diffstat (limited to 'git_checkpatch.sh')
-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}' + |