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>
This commit is contained in:
committed by
Junio C Hamano
parent
dde1358970
commit
2d95707a02
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user