]> git.99rst.org Git - git.git/commit
sparse-checkout: split out code for tweaking settings config
authorElijah Newren <redacted>
Tue, 14 Dec 2021 04:09:07 +0000 (04:09 +0000)
committerJunio C Hamano <redacted>
Wed, 15 Dec 2021 19:48:22 +0000 (11:48 -0800)
commitbe61fd1181f62dcb7b6a5f41021e7f086d7c30b0
tree6771096c9b933ff84e74352584c2c8264c1fe231
parentf85751a147996f7f0a8edf3ea2a00217c9ddfc99
sparse-checkout: split out code for tweaking settings config

`init` has some code for handling updates to either cone mode or
the sparse-index setting.  We would like to be able to reuse this
elsewhere, namely in `set` and `reapply`.  Split this function out,
and make it slightly more general so it can handle being called from
the new callers.

Reviewed-by: Derrick Stolee <redacted>
Reviewed-by: Victoria Dye <redacted>
Signed-off-by: Elijah Newren <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/sparse-checkout.c
git clone https://git.99rst.org/PROJECT