From 4d9378bfad4a283d5e06fbbeba80b5db6be73bc4 Mon Sep 17 00:00:00 2001 From: Emma Brooks Date: Sat, 25 Apr 2020 02:17:23 +0000 Subject: 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 --- gitweb/gitweb.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitweb') diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 65a3a9e62e..e585b70b6c 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4627,7 +4627,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; -- cgit v1.2.3