summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-07-14 13:12:26 +0000
committerJunio C Hamano <gitster@pobox.com>2021-07-14 13:42:21 -0700
commit47410778fbd2765c9e0a4b4026ece66aa7c83aa4 (patch)
treeb824825b3feaa0ee00f8dac09fcb352f3b8f292a /builtin/commit.c
parentfc6609d198c47bf511f3388975c7c94e0aa1af2b (diff)
sparse-index: include EXTENDED flag when expanding
When creating a full index from a sparse one, we create cache entries for every blob within a given sparse directory entry. These are correctly marked with the CE_SKIP_WORKTREE flag, but the CE_EXTENDED flag is not included. The CE_EXTENDED flag would exist if we loaded a full index from disk with these entries marked with CE_SKIP_WORKTREE, so we can add the flag here to be consistent. This allows us to directly compare the flags present in cache entries when testing the sparse-index feature, but has no significance to its correctness in the user-facing functionality. Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions