diff options
author | Elijah Newren <newren@gmail.com> | 2022-04-22 05:32:19 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-22 09:12:38 +0300 |
commit | 2d95707a02ffd68933f8af0fa76090bea908d376 (patch) | |
tree | 44deb0f1e06ea222539e2e0d75de0fcdd2c2b63f /builtin | |
parent | dde1358970ab9ddafb9f664baadeddde1e9e7842 (diff) |
sparse-checkout: make --cone the default
Make cone mode the default, and update the documentation accordingly.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/sparse-checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/sparse-checkout.c b/builtin/sparse-checkout.c index 5518ed47f6..61b7a7519b 100644 --- a/builtin/sparse-checkout.c +++ b/builtin/sparse-checkout.c @@ -397,7 +397,7 @@ static int update_modes(int *cone_mode, int *sparse_index) /* Set cone/non-cone mode appropriately */ core_apply_sparse_checkout = 1; - if (*cone_mode == 1) { + if (*cone_mode == 1 || *cone_mode == -1) { mode = MODE_CONE_PATTERNS; core_sparse_checkout_cone = 1; } else { |