Skip to content

Instantly share code, notes, and snippets.

@anatol
Created September 14, 2014 03:24
Show Gist options
  • Save anatol/4bd8ba61b240261c3573 to your computer and use it in GitHub Desktop.
Save anatol/4bd8ba61b240261c3573 to your computer and use it in GitHub Desktop.
Checkpatch bash function
function checkpatch {
dir=$(mktemp -d)
git format-patch @{u} -q -o $dir
./scripts/checkpatch.pl --summary-file -q $dir/*
rm -rf $dir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment