From: Emma Brooks Date: Sat, 25 Apr 2020 02:17:23 +0000 (+0000) Subject: gitweb: Recognize *-to and Closes/Fixes trailers X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/7b842a26b504d737eb37311899483eba076ae9dfccf9de49ffb92072490f99be gitweb: Recognize *-to and Closes/Fixes trailers Commit trailers like "Thanks-to:", "Fixes:", and "Closes:" are fairly common, but gitweb didn't highlight them like other trailers. Signed-off-by: Emma Brooks Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 7f9a7dd..b47a42f 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -4642,7 +4642,7 @@ sub git_print_log { # print log my $skip_blank_line = 0; foreach my $line (@$log) { - if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) { + if ($line =~ m/^\s*([A-Z][-A-Za-z]*-([Bb]y|[Tt]o)|C[Cc]|(Clos|Fix)es): /) { if (! $opts{'-remove_signoff'}) { print "" . esc_html($line) . "
\n"; $skip_blank_line = 1;