Skip to content

Commit 04794fd

Browse files
pksunkaragitster
authored andcommitted
gitweb: Use @diff_opts while using format-patch
Make git-format-patch (used by 'patch' and 'patches' views) use the same rename detection options that git-diff and git-diff-tree (used by 'commitdiff', 'blobdiff', etc.) use. Signed-off-by: Pavan Kumar Sunkara <[email protected]> Acked-by: Jakub Narebski <[email protected]> Acked-by: Giuseppe Bilotta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0e4607c commit 04794fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6117,8 +6117,8 @@ sub git_commitdiff {
61176117
}
61186118
push @commit_spec, '--root', $hash;
61196119
}
6120-
open $fd, "-|", git_cmd(), "format-patch", '--encoding=utf8',
6121-
'--stdout', @commit_spec
6120+
open $fd, "-|", git_cmd(), "format-patch", @diff_opts,
6121+
'--encoding=utf8', '--stdout', @commit_spec
61226122
or die_error(500, "Open git-format-patch failed");
61236123
} else {
61246124
die_error(400, "Unknown commitdiff format");

0 commit comments

Comments
 (0)