From b18f522bced85deda8a339cdf9aa310478db3a71 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 11 Feb 2015 01:53:42 +0100 Subject: lint/gitconfig: Enable checkpatch.pl checking of commits This patch enables running the checkpatch script on the code portion of each commit as part of the pre-commit hook. At this point there is no checking of the commit message in place (e.g. for typos) Change-Id: I7cdf0692cf372986e411f4aba4691417b73c7511 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/8419 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- util/gitconfig/pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/gitconfig/pre-commit') diff --git a/util/gitconfig/pre-commit b/util/gitconfig/pre-commit index ccf78d376c..70cd6eade1 100755 --- a/util/gitconfig/pre-commit +++ b/util/gitconfig/pre-commit @@ -1,2 +1,3 @@ #!/bin/sh -exec %MAKE% lint-stable +%MAKE% lint-stable +git diff --cached | util/lint/checkpatch.pl --no-signoff -q - -- cgit v1.2.3