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 <me@pluvano.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Emma Brooks committed
Apr 25, 2020 at 02:17 UTC
4d9378bfad4a283d5e06fbbeba80b5db6be73bc4
1 file changed
+1
-1
gitweb/gitweb.perl
+1
-1
@@ -4627,7 +4627,7 @@ sub git_print_log {
4627
# print log
4628
my $skip_blank_line = 0;
4629
foreach my $line (@$log) {
4630
- if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) {
4630
+ if ($line =~ m/^\s*([A-Z][-A-Za-z]*-([Bb]y|[Tt]o)|C[Cc]|(Clos|Fix)es): /) {
4631
if (! $opts{'-remove_signoff'}) {
4632
print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
4633
$skip_blank_line = 1;