From: Petr Baudis Date: Fri, 6 Oct 2006 16:55:04 +0000 (+0200) Subject: gitweb: Handle commits with empty commit messages more reasonably X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/0afd1e32598f813f593cd79a67cfdaa35688d2fe3892fb17c3107ec10124d2ea?ds=sidebyside gitweb: Handle commits with empty commit messages more reasonably 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 7e9b5d4..21e19f0 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -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/^ //;