Whamcloud - gitweb
LU-15511 misc: allow Lustre-change and Lustre-commit 20/46420/3
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 2 Feb 2022 02:34:34 +0000 (19:34 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:34:17 +0000 (05:34 +0000)
commit019593d4a77125c1af755dd760cf58789de842a1
tree881bb51c777d8c5175f9506fea5fb6f698c9a45c
parent2f23140d5c1396fd0b247bd7f9c249f6e24096b7
LU-15511 misc: allow Lustre-change and Lustre-commit

Allow the Lustre-change:, Lustre-commit:, Linux-commit: labels in
the signoff section.  Verify that Lustre-change: has a valid-looking
Gerrit URL in "permalink" format "https://review.whamcloud.com/nnnnn".
Verify -commit: labels have a valid-looking Git hashes (40 hex chars),
though the actual hash cannot be verified because it may be from a
different Git repository.

Shorten the help message in case of error, and add "commit-msg --help"
to print the full commit format help.

Allow lines over 70 chars that contain URLs, which cannot be shorter.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I866ab91b33f6e52ff893344df74af243903ebbe5
Reviewed-on: https://review.whamcloud.com/46420
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alena Nikitenko <anikitenko@ddn.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/git-hooks/commit-msg
contrib/git-hooks/tests/commit.bad_change [new file with mode: 0644]
contrib/git-hooks/tests/commit.bad_commit [new file with mode: 0644]
contrib/git-hooks/tests/commit.bad_lustre [new file with mode: 0644]
contrib/git-hooks/tests/commit.badname
contrib/git-hooks/tests/commit.ok_lustre [new file with mode: 0644]