Skip to content

Commit

Permalink
gitweb: Use @diff_opts while using format-patch
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pksunkara authored and gitster committed May 19, 2010
1 parent 0e4607c commit 04794fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -6117,8 +6117,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");
Expand Down

0 comments on commit 04794fd

Please sign in to comment.