checkout: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:44 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:03 +0000 (13:47 -0700)
commit0f6d3ba6bd795b09bf216c267bbf6e3ec2409d1e
tree172e195f87d3339e178be372ade84adac4c70500
parent1b850d37f42d58d1c4ad1454d80ecf33797bc467
checkout: ensure full index

Before iterating over all cache entries in the checkout builtin, ensure
that we have a full index to avoid any 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>
builtin/checkout.c