Skip to content

Commit 4d9378b

Browse files
pluvanogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent af6b65d commit 4d9378b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4627,7 +4627,7 @@ sub git_print_log {
46274627
# print log
46284628
my $skip_blank_line = 0;
46294629
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): /) {
46314631
if (! $opts{'-remove_signoff'}) {
46324632
print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
46334633
$skip_blank_line = 1;

0 commit comments

Comments
 (0)