From: Petr Baudis Date: Fri, 06 Oct 2006 16:55:04 GMT Subject: [PATCH] gitweb: Handle commits with empty commit messages more reasonably Message-ID: <20061006165504.3934.97392.stgit@rover> In-Reply-To: <20061006135508.GO20017@pasky.or.cz> 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 --- gitweb/gitweb.perl | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index ea159e9..56e5231 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1115,6 +1115,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/^ //;