]> git.ipfire.org Git - thirdparty/git.git/commit
read-cache: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:58 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:42 +0000 (13:47 -0700)
commit0c18c059a152058e30e23c4edcd24b3992599503
treecc65da889deb7845dd356340627ac670916640b8
parent465a04abc6e5f4fe2b93c662bab0319c1667180e
read-cache: 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>
read-cache.c