diff options
author | Elijah Newren <newren@gmail.com> | 2021-07-15 00:45:22 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-15 16:54:24 -0700 |
commit | 6623a528e00b73f5438724a355c43343d3de8652 (patch) | |
tree | 0300e94752ae6a10bb159d5c16bdbe7bbb7db968 /Documentation/config/diff.txt | |
parent | diff: correct warning message when renameLimit exceeded (diff) | |
download | tgif-6623a528e00b73f5438724a355c43343d3de8652.tar.xz |
doc: clarify documentation for rename/copy limits
A few places in the docs implied that rename/copy detection is always
quadratic or that all (unpaired) files were involved in the quadratic
portion of rename/copy detection. The following two commits each
introduced an exception to this:
9027f53cb505 (Do linear-time/space rename logic for exact renames,
2007-10-25)
bd24aa2f97a0 (diffcore-rename: guide inexact rename detection based
on basenames, 2021-02-14)
(As a side note, for copy detection, the basename guided inexact rename
detection is turned off and the exact renames will only result in
sources (without the dests) being removed from the set of files used in
quadratic detection. So, for copy detection, the documentation was
closer to correct.)
Avoid implying that all files involved in rename/copy detection are
subject to the full quadratic algorithm. While at it, also note the
default values for all these settings.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/diff.txt')
-rw-r--r-- | Documentation/config/diff.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/config/diff.txt b/Documentation/config/diff.txt index 2d3331f55c..d1b5cfa354 100644 --- a/Documentation/config/diff.txt +++ b/Documentation/config/diff.txt @@ -118,9 +118,10 @@ diff.orderFile:: relative to the top of the working tree. diff.renameLimit:: - The number of files to consider when performing the copy/rename - detection; equivalent to the 'git diff' option `-l`. This setting - has no effect if rename detection is turned off. + The number of files to consider in the exhaustive portion of + copy/rename detection; equivalent to the 'git diff' option + `-l`. If not set, the default value is currently 400. This + setting has no effect if rename detection is turned off. diff.renames:: Whether and how Git detects renames. If set to "false", |