diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-18 23:01:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-18 23:01:03 -0700 |
commit | 023adc077c254797b19f2e784365383ba0919305 (patch) | |
tree | 94afa58d25d89d4624cb08c75796baf42db28d00 | |
parent | 178071baa719d10cb05d558c40026925c6f04f78 (diff) | |
parent | 1655c98790682aed8892eb8a9eb6d44e00d5f69f (diff) | |
download | git-023adc077c254797b19f2e784365383ba0919305.tar.gz git-023adc077c254797b19f2e784365383ba0919305.tar.xz |
Merge branch 'jn/gitweb-patch'
* jn/gitweb-patch:
gitweb: Do not show 'patch' link for merge commits
-rwxr-xr-x | gitweb/gitweb.perl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 24b219310..c939e2434 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5328,7 +5328,7 @@ sub git_commit { } @$parents ) . ')'; } - if (gitweb_check_feature('patches')) { + if (gitweb_check_feature('patches') && @$parents <= 1) { $formats_nav .= " | " . $cgi->a({-href => href(action=>"patch", -replay=>1)}, "patch"); @@ -5616,7 +5616,7 @@ sub git_commitdiff { $formats_nav = $cgi->a({-href => href(action=>"commitdiff_plain", -replay=>1)}, "raw"); - if ($patch_max) { + if ($patch_max && @{$co{'parents'}} <= 1) { $formats_nav .= " | " . $cgi->a({-href => href(action=>"patch", -replay=>1)}, "patch"); @@ -5824,7 +5824,7 @@ sub git_commitdiff_plain { # format-patch-style patches sub git_patch { - git_commitdiff(-format => 'patch', -single=> 1); + git_commitdiff(-format => 'patch', -single => 1); } sub git_patches { |