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 <pavan.sss1991@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Acked-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Pavan Kumar Sunkara committed
May 10, 2010 at 18:41 UTC
04794fdc2701f15d79d92805cfe94c9e754e2e05
1 file changed
+2
-2
gitweb/gitweb.perl
+2
-2
@@ -6117,8 +6117,8 @@ sub git_commitdiff {
6117
}
6118
push @commit_spec, '--root', $hash;
6119
}
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
6122
or die_error(500, "Open git-format-patch failed");
6123
} else {
6124
die_error(400, "Unknown commitdiff format");