diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-03-05 10:43:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-05 10:43:02 -0800 |
commit | f4d7dfce4db1666173d0ef0bd058510f558aebc0 (patch) | |
tree | caab22c7f8fc55560c1cb5076a68add051fea38c /dir.c | |
parent | The eighth batch for 2.26 (diff) | |
parent | sparse-checkout: allow one-character directories in cone mode (diff) | |
download | tgif-f4d7dfce4db1666173d0ef0bd058510f558aebc0.tar.xz |
Merge branch 'ds/sparse-add'
"git sparse-checkout" learned a new "add" subcommand.
* ds/sparse-add:
sparse-checkout: allow one-character directories in cone mode
sparse-checkout: work with Windows paths
sparse-checkout: create 'add' subcommand
sparse-checkout: extract pattern update from 'set' subcommand
sparse-checkout: extract add_patterns_from_input()
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -688,7 +688,7 @@ static void add_pattern_to_hashsets(struct pattern_list *pl, struct path_pattern return; } - if (given->patternlen <= 2 || + if (given->patternlen < 2 || *given->pattern == '*' || strstr(given->pattern, "**")) { /* Not a cone pattern. */ |