diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-01-24 21:19:36 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-24 13:26:54 -0800 |
commit | 41de0c6fbcc3d2544ebada3a9f26dec0f32f42de (patch) | |
tree | 3b9147a8baec6ddb105d107bd9b1000da70e1abe /Documentation/git-mv.txt | |
parent | sparse-checkout: fix documentation typo for core.sparseCheckoutCone (diff) | |
download | tgif-41de0c6fbcc3d2544ebada3a9f26dec0f32f42de.tar.xz |
sparse-checkout: cone mode does not recognize "**"
When core.sparseCheckoutCone is enabled, the 'git sparse-checkout set'
command creates a restricted set of possible patterns that are used
by a custom algorithm to quickly match those patterns.
If a user manually edits the sparse-checkout file, then they could
create patterns that do not match these expectations. The cone-mode
matching algorithm can return incorrect results. The solution is to
detect these incorrect patterns, warn that we do not recognize them,
and revert to the standard algorithm.
Check each pattern for the "**" substring, and revert to the old
logic if seen. While technically a "/<dir>/**" pattern matches
the meaning of "/<dir>/", it is not one that would be written by
the sparse-checkout builtin in cone mode. Attempting to accept that
pattern change complicates the logic and instead we punt and do
not accept any instance of "**".
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-mv.txt')
0 files changed, 0 insertions, 0 deletions