]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: git_print_log: signoff line is non-empty line
authorJakub Narebski <redacted>
Mon, 28 Aug 2006 12:48:13 +0000 (14:48 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
This correct minor error in git_print_log that didn't add final empty
line when requested, if commit log ended with signoff.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 1cc130ff9305deb5c084db8b50d68e8d595ddd74254263a82936c716bc6573a6..c7062254f445b4208f519fb08d90fff88ff5a65c8c4f43a391fa20964ecdf531 100755 (executable)
@@ -1407,6 +1407,7 @@ sub git_print_log ($;%) {
        foreach my $line (@$log) {
                if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
                        $signoff = 1;
        foreach my $line (@$log) {
                if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
                        $signoff = 1;
+                       $empty = 0;
                        if (! $opts{'-remove_signoff'}) {
                                print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
                                next;
                        if (! $opts{'-remove_signoff'}) {
                                print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
                                next;
This page took 0.301194 seconds and 4 git commands to generate.