Whamcloud - gitweb
LU-553 build: Lustre style commit hooks for Git
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 25 Aug 2011 21:08:04 +0000 (15:08 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Oct 2011 00:47:05 +0000 (20:47 -0400)
commita0bdd95f385168306b85fdee1e6bcf3dead772eb
tree05f0cd8d87b6be55bbf5d8ef8956424ef97d8073
parentf0e5295cc6227d8b2c97f903cbaf5f8f7c799181
LU-553 build: Lustre style commit hooks for Git

Adds recommended commit hooks for Lustre commit messages, that
can/should be installed into lustre/.git/hooks for all Lustre trees.

prepare-commit-msg: adds the output of checkpatch.pl as a
    comment to the commit message, to "soft" validate the new
    patch is matching the Lustre coding style. It doesn't check
    100% of the Lustre coding style, but at least finds most of
    the obvious errors so that they can be fixed locally before
    any manual inspection time is spent on the patch.

commit-msg: verifies the format of the commit message (somewhat).
    Checks that there is a valid-looking Signed-off-by: line.
    Adds the Gerrit Change-Id: line for change tracking.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I35fdfb8206d1f0efb3bb401522e8412c62b7c02a
Reviewed-on: http://review.whamcloud.com/1296
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
README
build/commit-msg [new file with mode: 0755]
build/prepare-commit-msg [new file with mode: 0755]