Merge branch 'jn/gitweb-patch'
* jn/gitweb-patch: gitweb: Do not show 'patch' link for merge commits
This commit is contained in:
@ -5328,7 +5328,7 @@ sub git_commit {
|
|||||||
} @$parents ) .
|
} @$parents ) .
|
||||||
')';
|
')';
|
||||||
}
|
}
|
||||||
if (gitweb_check_feature('patches')) {
|
if (gitweb_check_feature('patches') && @$parents <= 1) {
|
||||||
$formats_nav .= " | " .
|
$formats_nav .= " | " .
|
||||||
$cgi->a({-href => href(action=>"patch", -replay=>1)},
|
$cgi->a({-href => href(action=>"patch", -replay=>1)},
|
||||||
"patch");
|
"patch");
|
||||||
@ -5616,7 +5616,7 @@ sub git_commitdiff {
|
|||||||
$formats_nav =
|
$formats_nav =
|
||||||
$cgi->a({-href => href(action=>"commitdiff_plain", -replay=>1)},
|
$cgi->a({-href => href(action=>"commitdiff_plain", -replay=>1)},
|
||||||
"raw");
|
"raw");
|
||||||
if ($patch_max) {
|
if ($patch_max && @{$co{'parents'}} <= 1) {
|
||||||
$formats_nav .= " | " .
|
$formats_nav .= " | " .
|
||||||
$cgi->a({-href => href(action=>"patch", -replay=>1)},
|
$cgi->a({-href => href(action=>"patch", -replay=>1)},
|
||||||
"patch");
|
"patch");
|
||||||
@ -5824,7 +5824,7 @@ sub git_commitdiff_plain {
|
|||||||
|
|
||||||
# format-patch-style patches
|
# format-patch-style patches
|
||||||
sub git_patch {
|
sub git_patch {
|
||||||
git_commitdiff(-format => 'patch', -single=> 1);
|
git_commitdiff(-format => 'patch', -single => 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub git_patches {
|
sub git_patches {
|
||||||
|
Reference in New Issue
Block a user