ls-files: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:49 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:17 +0000 (13:47 -0700)
commit42f44e84eb3be06f463ebc33baa2fc91423f4470
tree48701c0e2b52f76a3b581c4104f3fa6e4c847352
parent46eb6e31ef01684ec2dc64f690a63446022940e5
ls-files: ensure full index

Before iterating over all cache entries, ensure that a sparse index is
expanded to a full one to avoid missing files.

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/ls-files.c