Extras: Add a checkpatch git pre-commit hook
authorChristian Babeux <christian.babeux@efficios.com>
Mon, 7 Jan 2013 22:12:42 +0000 (17:12 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 10 Jan 2013 17:52:53 +0000 (12:52 -0500)
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 <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.024086 seconds and 4 git commands to generate.