X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/8037d57547bf5f0f3ab65ac17c68e7f8f0757457c3c8c8b6e62f617c51e371d6..0afd1e32598f813f593cd79a67cfdaa35688d2fe3892fb17c3107ec10124d2ea:/gitweb.perl
diff --git a/gitweb.perl b/gitweb.perl
index 51149ae..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/^ //;
@@ -1994,14 +1997,14 @@ sub git_patchset_body {
print "
" . file_type($diffinfo->{'to_mode'}) . ":" .
$cgi->a({-href => href(action=>"blob", hash_base=>$hash,
hash=>$diffinfo->{'to_id'}, file_name=>$diffinfo->{'file'})},
- $diffinfo->{'to_id'}) . "(new)" .
+ $diffinfo->{'to_id'}) . " (new)" .
"
\n"; # class="diff_info"
} elsif ($diffinfo->{'status'} eq "D") { # deleted
print "" . file_type($diffinfo->{'from_mode'}) . ":" .
$cgi->a({-href => href(action=>"blob", hash_base=>$hash_parent,
hash=>$diffinfo->{'from_id'}, file_name=>$diffinfo->{'file'})},
- $diffinfo->{'from_id'}) . "(deleted)" .
+ $diffinfo->{'from_id'}) . " (deleted)" .
"
\n"; # class="diff_info"
} elsif ($diffinfo->{'status'} eq "R" || # renamed
@@ -2105,8 +2108,10 @@ sub git_shortlog_body {
print "\n" .
"" .
$cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
- $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree") . " | " .
- $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot");
+ $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree");
+ if (gitweb_have_snapshot()) {
+ print " | " . $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot");
+ }
print " | \n" .
"\n";
}