diff options
author | Petr Baudis <pasky@suse.cz> | 2006-10-06 18:55:04 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-07 02:16:33 -0700 |
commit | 7e0fe5c939bdd5cc2885d21799e95304a46bf706 (patch) | |
tree | e81acbc37d79873113dc406bcd24c6f9933ea6a2 | |
parent | gitweb: Separate (new) and (deleted) in commitdiff by a space (diff) | |
download | tgif-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-x | gitweb/gitweb.perl | 3 |
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/^ //; |