diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 374abf4436361..a3adba166c8fa 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2162,6 +2162,7 @@ sub process { # Check for improperly formed commit descriptions if ($in_commit_log && + $line !~ /^This reverts commit [0-9a-f]{7,40}/ && $line =~ /\bcommit\s+[0-9a-f]{5,}/i && !($line =~ /\b[Cc]ommit [0-9a-f]{12,40} \("/ || ($line =~ /\b[Cc]ommit [0-9a-f]{12,40}\s*$/ &&