diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-28 22:18:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-28 22:18:03 +0200 |
commit | 268055bfdec5cc2228ade6f3ff7094632568c82a (patch) | |
tree | 53bb23cd6e9433f955a7ca5add6b759a6d5d9df9 /diffcore-rename.c | |
parent | Merge branch 'ds/gender-neutral-doc-guidelines' (diff) | |
parent | rename: bump limit defaults yet again (diff) | |
download | git-268055bfdec5cc2228ade6f3ff7094632568c82a.tar.xz git-268055bfdec5cc2228ade6f3ff7094632568c82a.zip |
Merge branch 'en/rename-limits-doc'
Documentation on "git diff -l<n>" and diff.renameLimit have been
updated, and the defaults for these limits have been raised.
* en/rename-limits-doc:
rename: bump limit defaults yet again
diffcore-rename: treat a rename_limit of 0 as unlimited
doc: clarify documentation for rename/copy limits
diff: correct warning message when renameLimit exceeded
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r-- | diffcore-rename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c index 4ef0459cfb..2618bb07c1 100644 --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -1091,7 +1091,7 @@ static int too_many_rename_candidates(int num_destinations, int num_sources, * memory for the matrix anyway. */ if (rename_limit <= 0) - rename_limit = 32767; + return 0; /* treat as unlimited */ if (st_mult(num_destinations, num_sources) <= st_mult(rename_limit, rename_limit)) return 0; |