summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2021-09-08 01:42:28 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-07 22:41:09 -0700
commit5dc16756b220429ca91cbf263b936764f83cd4bb (patch)
tree2367982a35834fedb830ea28d46c0c216b320daf /dir.h
parentunpack-trees: fix nested sparse-dir search (diff)
downloadtgif-5dc16756b220429ca91cbf263b936764f83cd4bb.tar.xz
sparse-index: silently return when cache tree fails
If cache_tree_update() returns a non-zero value, then it could not create the cache tree. This is likely due to a path having a merge conflict. Since we are already returning early, let's return silently to avoid making it seem like we failed to write the index at all. If we remove our dependence on the cache tree within convert_to_sparse(), then we could still recover from this scenario and have a sparse index. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
0 files changed, 0 insertions, 0 deletions