Whamcloud - gitweb
LU-1595 build: improve prepare-commit-msg git hook 27/13427/7
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 15 Jan 2015 21:50:20 +0000 (14:50 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:49:34 +0000 (03:49 +0000)
commitb1c8f737c8bbe862930cc0f174bd478ba42f7ffe
tree8b30e1bfb54237b968d2cbceaf93d8829b02d946
parenta0f7434c4ddd9965b82a87245b9fe586abf56e81
LU-1595 build: improve prepare-commit-msg git hook

Improve the Git prepare-commit-msg hook to still add the default
comment for Signed-off-by: and the Vim modeline, even if checkpatch.pl
isn't available.

Add a few more comments to the script.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I253931c34ee64afa2d9cf160e675c779b32e9359
Reviewed-on: http://review.whamcloud.com/13427
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
contrib/git-hooks/prepare-commit-msg