]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Use @diff_opts while using format-patch
authorPavan Kumar Sunkara <redacted>
Mon, 10 May 2010 16:41:35 +0000 (18:41 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
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 <redacted>
Acked-by: Jakub Narebski <redacted>
Acked-by: Giuseppe Bilotta <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 1f1842a6f830f00aa882674837886dafa94eab292f2a369aeb14c4ac24bf8a14..8b61a75718e8937052e74d83ba4b1f647d689ff732a12d8db12c428bcc6bec8c 100755 (executable)
@@ -6326,8 +6326,8 @@ sub git_commitdiff {
                        }
                        push @commit_spec, '--root', $hash;
                }
-               open $fd, "-|", git_cmd(), "format-patch", '--encoding=utf8',
-                       '--stdout', @commit_spec
+               open $fd, "-|", git_cmd(), "format-patch", @diff_opts,
+                       '--encoding=utf8', '--stdout', @commit_spec
                        or die_error(500, "Open git-format-patch failed");
        } else {
                die_error(400, "Unknown commitdiff format");
This page took 0.233727 seconds and 4 git commands to generate.