From 96a3d664cbaef27c3175e1a968aa4b8f9dca9da0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 9 Oct 2020 15:53:02 +0200 Subject: [PATCH] contrib/checkpatch: complain about patch format with "Reverts:" tag --- contrib/scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 40518c8e72..1729e96f86 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -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);