summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorEmma Brooks <me@pluvano.com>2020-04-25 02:17:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-25 05:19:04 (GMT)
commit4d9378bfad4a283d5e06fbbeba80b5db6be73bc4 (patch)
tree846be52b84cc290e1a47c0769ea62f6ca8e8b703 /gitweb
parentaf6b65d45ef179ed52087e80cb089f6b2349f4ec (diff)
downloadgit-4d9378bfad4a283d5e06fbbeba80b5db6be73bc4.zip
git-4d9378bfad4a283d5e06fbbeba80b5db6be73bc4.tar.gz
git-4d9378bfad4a283d5e06fbbeba80b5db6be73bc4.tar.bz2
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 65a3a9e..e585b70 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 "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
$skip_blank_line = 1;