]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Handle commits with empty commit messages more reasonably
authorPetr Baudis <redacted>
Fri, 6 Oct 2006 16:55:04 +0000 (18:55 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
Currently those look very weird, you can't get easily at the commit view
etc. This patch makes their title '(no commit message)'.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 7e9b5d4ca2dc1f66d7f7e44b79e7c4d572cf7a205bb9a9e249222e38074a4784..21e19f0d90f070eb0b2e76fe56c2d81317b4e31a07928f79c510e1d1d4666a90 100755 (executable)
@@ -1120,6 +1120,9 @@ sub parse_commit {
                        last;
                }
        }
+       if ($co{'title'} eq "") {
+               $co{'title'} = $co{'title_short'} = '(no commit message)';
+       }
        # remove added spaces
        foreach my $line (@commit_lines) {
                $line =~ s/^    //;
This page took 0.172129 seconds and 4 git commands to generate.