#!/bin/sh set -e set -x git commit --allow-empty -a -m "save changes" git checkout -b test_checkpatch git reset --soft v2.6.34 git commit --allow-empty -a -m "huge commit" git format-patch --stdout HEAD\^ > /tmp/patch git checkout - git branch -D test_checkpatch git reset --soft `git symbolic-ref HEAD`'@{1}' ~/linux-2.6/scripts/checkpatch.pl /tmp/patch > /tmp/checkpatch || :