]> git.ipfire.org Git - thirdparty/git.git/commit - resolve-undo.c
resolve-undo: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:59 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:45 +0000 (13:47 -0700)
commitdc26b23ebc30adcb4aa54a5eccf2e47793984fa2
tree9a863a0ce957a5bf7d4ff0a8d636f0377091835f
parent0c18c059a152058e30e23c4edcd24b3992599503
resolve-undo: ensure full index

Before iterating over all cache entries, ensure that a sparse index is
expanded to a full index to avoid unexpected behavior.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
resolve-undo.c