X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/eded4441e852836fd424bc74512462ebae07d94622bafcbcd6fe3ea19cd983de..460fae4bad225f56941a2b2af792ab602a773b2bb6c33ee1889a8256e70a061b:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 52e3461..86a8bab 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -1115,7 +1115,9 @@ sub git_get_project_description { open my $fd, "$projectroot/$path/description" or return undef; my $descr = <$fd>; close $fd; - chomp $descr; + if (defined $descr) { + chomp $descr; + } return $descr; } @@ -1902,6 +1904,8 @@ EOF } print "\n"; } + print "\n"; + my ($have_search) = gitweb_check_feature('search'); if ((defined $project) && ($have_search)) { if (!defined $searchtext) { @@ -1931,7 +1935,6 @@ EOF "" . $cgi->end_form() . "\n"; } - print "\n"; } sub git_footer_html { @@ -2721,8 +2724,9 @@ sub git_patchset_body { delete $from{'href'}; } } + $to{'file'} = $diffinfo->{'to_file'} || $diffinfo->{'file'}; - if ($diffinfo->{'status'} ne "D") { # not deleted file + if ($diffinfo->{'to_id'} ne ('0' x 40)) { # file exists in result $to{'href'} = href(action=>"blob", hash_base=>$hash, hash=>$diffinfo->{'to_id'}, file_name=>$to{'file'}); @@ -2878,7 +2882,14 @@ sub git_patchset_body { } continue { print "\n"; # class="patch" } - print "
No differences found
\n" if (!$patch_number); + + if ($patch_number == 0) { + if (@hash_parents > 1) { + print "
Trivial merge
\n"; + } else { + print "
No differences found
\n"; + } + } print "\n"; # class="patchset" }