blob: 98bce8f00dd1eddb83b9ee692206befcd9d10b1b [file] [log] [blame]
#!/bin/bash
if git rev-parse --verify HEAD 2>/dev/null >/dev/null
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
topdir=$(git rev-parse --show-toplevel)
exec git diff --cached $against | $topdir/src/scripts/checkpatch.pl \
--no-signoff -q -