aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 41223c946808..6a3baa0bdde8 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2198,6 +2198,13 @@ sub process {
2198 defined $rawlines[$linenr] && 2198 defined $rawlines[$linenr] &&
2199 $rawlines[$linenr] =~ /^\s*\("([^"]+)"\)/) { 2199 $rawlines[$linenr] =~ /^\s*\("([^"]+)"\)/) {
2200 $orig_desc = $1; 2200 $orig_desc = $1;
2201 } elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("[^"]+$/i &&
2202 defined $rawlines[$linenr] &&
2203 $rawlines[$linenr] =~ /^\s*[^"]+"\)/) {
2204 $line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)$/i;
2205 $orig_desc = $1;
2206 $rawlines[$linenr] =~ /^\s*([^"]+)"\)/;
2207 $orig_desc .= " " . $1;
2201 } 2208 }
2202 2209
2203 ($id, $description) = git_commit_info($orig_commit, 2210 ($id, $description) = git_commit_info($orig_commit,