diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-01-31 20:16:09 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-31 13:05:29 -0800 |
commit | 4f52c2ce6c578896964e960f6017510f0efd3f46 (patch) | |
tree | 6e35b5a1de6c7d5a73319f2fe96cb0f422155027 /t/t3513-revert-submodule.sh | |
parent | sparse-checkout: warn on globs in cone patterns (diff) | |
download | tgif-4f52c2ce6c578896964e960f6017510f0efd3f46.tar.xz |
sparse-checkout: properly match escaped characters
In cone mode, the sparse-checkout feature uses hashset containment
queries to match paths. Make this algorithm respect escaped asterisk
(*) and backslash (\) characters.
Create dup_and_filter_pattern() method to convert a pattern by
removing escape characters and dropping an optional "/*" at the end.
This method is available in dir.h as we will use it in
builtin/sparse-checkout.c in a later change.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3513-revert-submodule.sh')
0 files changed, 0 insertions, 0 deletions