]> Lady’s Gitweb - Gitweb/commit
gitweb: Use @diff_opts, default ('M'), as git-diff and git-diff-tree paramete
authorJakub Narebski <redacted>
Sun, 27 Aug 2006 21:49:36 +0000 (23:49 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commite11fe568a0309a8c21584afd6eaa0363e032caaaa50695f431889101aca39b41
tree99b8765c4c919fc29c12169ca2dcf189a592bcecc61ed5bc667fb86e2302cc9e
parentf57526152f50bbb00949ab5ce7ae10bd71984fecaf354df77e5fe776a11322b5
gitweb: Use @diff_opts, default ('M'), as git-diff and git-diff-tree paramete

Added new global configuration variable @diff_opts, which holds
additional options (parameters) to git-diff and git-diff-tree, usually
dealing rename/copying detection.  Default value is '-M', taken from
git_commit subroutine.  Description of options and their approximate
cost by Junio C Hamano.

Changes:
* git_commitdiff, git_blobdiff and git_blobdiff_plain now use '-M'
  instead of '-M', '-C'
* git-diff now uses the same options as git-diff-tree
* git_comittdiff_plain now uses '-M' instead of '-B'
  and is now rename-aware
* git_rss uses now '-M' instead of ()

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.168253 seconds and 4 git commands to generate.