]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Recognize *-to and Closes/Fixes trailers
authorEmma Brooks <redacted>
Sat, 25 Apr 2020 02:17:23 +0000 (02:17 +0000)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:33 +0000 (00:51 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 7f9a7ddbbdf7904291e1b8e891ab4763c803331cf18fa28d69e682b67e743906..b47a42f6693f150f19b272bf7583f9333e68b2c610144b3b82ae0f5a306f3e11 100755 (executable)
@@ -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 "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
                                $skip_blank_line = 1;
This page took 0.319792 seconds and 4 git commands to generate.