]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:54 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:32 +0000 (13:47 -0700)
commitd425f65127562e3a7f308b1ccfe385950f96e8ec
tree23dfee2e9242d8607db78fd3c4d463ccb93cbc51
parent2508df0272fdae3025b53366ac6b456920bc0de0
dir: 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>
dir.c