checkpatch.pl: Add additional granularity to malformed commit errors

Commit-Ids are expected to be 12 to 40 characters, followed by a
description enclosed by parenthesis. The current error message only
mentions the length requirement, causing confusion when a commit-Id is
formatted properly but the description is not inside parenthesis.

Change-Id: If4c5a9c197146de9ada7c618a1cfff38514e611c
Signed-off-by: Ian Maund <imaund@codeaurora.org>
This commit is contained in:
Ian Maund 2015-06-01 16:32:26 -07:00 committed by Stepan Moskovchenko
parent adc1986d76
commit 0fca09d808
1 changed files with 1 additions and 1 deletions

View File

@ -2318,7 +2318,7 @@ sub process {
my $desc = 'commit description';
($id, $desc) = git_commit_info($orig_commit, $id, $desc);
ERROR("GIT_COMMIT_ID",
"Please use 12 or more chars for the git commit ID like: '${init_char}ommit $id (\"$desc\")'\n" . $herecurr);
"Please use 12 or more chars for the git commit ID and enclose the descritpion in parenthesis like: '${init_char}ommit $id (\"$desc\")'\n" . $herecurr);
}
# Check for added, moved or deleted files