Commit
764243bdf45b4282623a69427f4f068bd960876b
diff: avoid misleading statement about -l option
In commit 6623a528e00b (doc: clarify documentation for rename/copy limits, 2021-07-15), the wording around rename limit options and config variables were updated to point out that only the quadratic portion of rename detection (or "exhaustive portion of rename/copy detection" as used in that commit) was limited by these options, because exact rename detection and basename-guided rename detection (which both run in time linear in the number of files) still run before this limit is checked. However, the short help message wasn't updated at the time; update it too. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren <newren@gmail.com> · 2026-08-14 02:06 UTC · committed by Junio C Hamano
1 file changed,
+1
−1
modified diff.c
| @@ -6186,7 +6186,7 @@ struct option *add_diff_options(const struct option *opts, | |||
| 6186 | 6186 | N_("continue listing the history of a file beyond renames"), | |
| 6187 | 6187 | PARSE_OPT_NOARG, diff_opt_follow), | |
| 6188 | 6188 | OPT_INTEGER('l', NULL, &options->rename_limit, | |
| 6189 | - | N_("prevent rename/copy detection if the number of rename/copy targets exceeds given limit")), | |
| 6189 | + | N_("limit to cheap rename/copy detection if the number of rename/copy targets exceeds this value")), | |
| 6190 | 6190 | ||
| 6191 | 6191 | OPT_GROUP(N_("Diff algorithm options")), | |
| 6192 | 6192 | OPT_CALLBACK_F(0, "minimal", options, NULL, | |