gitweb: change call pattern for git_commitdiff
[gitweb.git] / gitweb / gitweb.perl
index 9a11be3d94a9492de3d4e2b58cf0a9141bb376c4..63e93a2736d30a714854deae42763a10531d9ba2 100755 (executable)
@@ -5411,7 +5411,8 @@ sub git_blobdiff_plain {
 }
 
 sub git_commitdiff {
-       my $format = shift || 'html';
+       my %params = @_;
+       my $format = $params{-format} || 'html';
 
        my $patch_max;
        if ($format eq 'patch') {
@@ -5619,12 +5620,12 @@ sub git_commitdiff {
 }
 
 sub git_commitdiff_plain {
-       git_commitdiff('plain');
+       git_commitdiff(-format => 'plain');
 }
 
 # format-patch-style patches
 sub git_patch {
-       git_commitdiff('patch');
+       git_commitdiff(-format => 'patch');
 }
 
 sub git_history {