contrib/checkpatch: complain about patch format with "Reverts:" tag

This commit is contained in:
Thomas Haller 2020-10-09 15:53:02 +02:00
parent 503fa9df7b
commit 96a3d664cb
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -137,7 +137,7 @@ if ($is_patch) {
$check_line = 1;
$line = $_;
/^---$/ and $is_commit_message = 0;
/^Fixes: *(.*)/ and check_commit ($1, 1);
/^(Reverts|Fixes): *(.*)/ and check_commit ($2, 1);
/This reverts commit/ and next;
/cherry picked from/ and next;
/\bcommit (.*)/ and check_commit ($1, 0);