From: Elijah Newren via GitGitGadget Date: Thu, 23 Feb 2023 09:14:55 GMT Subject: [PATCH 06/11] sparse-checkout: avoid using internal API of unpack-trees, take 2 Message-ID: <8955b45e35474e5feb826101423470d0b51e5470.1677143700.git.gitgitgadget@gmail.com> In-Reply-To: From: Elijah Newren Commit 2f6b1eb794 ("cache API: add a "INDEX_STATE_INIT" macro/function, add release_index()", 2023-01-12) mistakenly added some initialization of a member of unpack_trees_options that was intended to be internal-only. Further, it served no purpose as it simply duplicated the initialization that unpack-trees.c code was already doing. Signed-off-by: Elijah Newren --- builtin/sparse-checkout.c | 1 - 1 file changed, 1 deletion(-) diff --git a/builtin/sparse-checkout.c b/builtin/sparse-checkout.c index 4b7390ce367..8d5ae6f2a60 100644 --- a/builtin/sparse-checkout.c +++ b/builtin/sparse-checkout.c @@ -217,7 +217,6 @@ static int update_working_directory(struct pattern_list *pl) o.head_idx = -1; o.src_index = r->index; o.dst_index = r->index; - index_state_init(&o.result, r); o.skip_sparse_checkout = 0; setup_work_tree(); -- gitgitgadget