summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Petr Baudis <pasky@suse.cz>2006-10-06 18:55:04 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-10-07 02:16:33 -0700
commit7e0fe5c939bdd5cc2885d21799e95304a46bf706 (patch)
treee81acbc37d79873113dc406bcd24c6f9933ea6a2
parentgitweb: Separate (new) and (deleted) in commitdiff by a space (diff)
downloadtgif-7e0fe5c939bdd5cc2885d21799e95304a46bf706.tar.xz
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 <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgitweb/gitweb.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3d677a9db5..c7a245ac2d 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1071,6 +1071,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/^ //;