@matheusbsbs / matheus-bagliano / commits / 7e0fe5c939
Fork 0

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>

Petr Baudis committed Oct 6, 2006 at 18:55 UTC 7e0fe5c939bdd5cc2885d21799e95304a46bf706
1 file changed +3
gitweb/gitweb.perl
+3
@@ -1071,6 +1071,9 @@ sub parse_commit {
1071 last;
1072 }
1073 }
1074 + if ($co{'title'} eq "") {
1075 + $co{'title'} = $co{'title_short'} = '(no commit message)';
1076 + }
1077 # remove added spaces
1078 foreach my $line (@commit_lines) {
1079 $line =~ s/^ //;