aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/sparse-checkout.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-17 14:31:26 -0800
committerJunio C Hamano <gitster@pobox.com>2023-01-17 14:31:26 -0800
commit73f69f22e590c2ddc2c6fb678a5b11d9d0ba39fa (patch)
tree3009eb67c05e69ccb782d7234cda170e24a9c459 /builtin/sparse-checkout.c
parentSync with 'maint' (diff)
parentcache API: add a "INDEX_STATE_INIT" macro/function, add release_index() (diff)
downloadgit-73f69f22e590c2ddc2c6fb678a5b11d9d0ba39fa.tar.gz
git-73f69f22e590c2ddc2c6fb678a5b11d9d0ba39fa.zip
Merge branch 'ab/cache-api-cleanup' into ab/cache-api-cleanup-users
* ab/cache-api-cleanup: cache API: add a "INDEX_STATE_INIT" macro/function, add release_index() read-cache.c: refactor set_new_index_sparsity() for subsequent commit sparse-index API: BUG() out on NULL ensure_full_index() sparse-index.c: expand_to_path() can assume non-NULL "istate" builtin/difftool.c: { 0 }-initialize rather than using memset()
Diffstat (limited to 'builtin/sparse-checkout.c')
-rw-r--r--builtin/sparse-checkout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/sparse-checkout.c b/builtin/sparse-checkout.c
index 58a22503f0..dc332c6d05 100644
--- a/builtin/sparse-checkout.c
+++ b/builtin/sparse-checkout.c
@@ -217,6 +217,7 @@ 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);
o.skip_sparse_checkout = 0;
o.pl = pl;