pathspec: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:57 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:40 +0000 (13:47 -0700)
commit465a04abc6e5f4fe2b93c662bab0319c1667180e
treed78eee4a6bd2bac0335cb45019839de0674d9159
parentf7ef64be0cda36e5188cfc712f61ba7279311b70
pathspec: 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>
pathspec.c