From: Christian Babeux Date: Mon, 7 Jan 2013 22:12:42 +0000 (-0500) Subject: Extras: Add a checkpatch git pre-commit hook X-Git-Tag: v2.2.0-rc1~119 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=de800f526933f12c0bf521b5d6976d7c6d15af2f;hp=de800f526933f12c0bf521b5d6976d7c6d15af2f Extras: Add a checkpatch git pre-commit hook This commit add the checkpatch-hook script that can be installed in git hooks folder in order to detect style issue before commiting any staged changes. The .checkpatch.conf file contains the appropriate options conforming to the coding style used in the lttng-tools tree. Also included in this commit is an install script to automatically install the hook in the git local repo. To override the pre-commit hook check, one can use the `git commit --no-verify` command. Signed-off-by: Christian Babeux Signed-off-by: David Goulet ---