]> git.99rst.org Git - git.git/commit
grep: ensure full index
authorDerrick Stolee <redacted>
Thu, 1 Apr 2021 01:49:48 +0000 (01:49 +0000)
committerJunio C Hamano <redacted>
Wed, 14 Apr 2021 20:47:13 +0000 (13:47 -0700)
commit46eb6e31ef01684ec2dc64f690a63446022940e5
tree76e4727615ea8f54ca91ebc12004bd1b57099e4d
parent2227ea175f9d2660c66f1bf15e2cd1ad75c9d4ca
grep: ensure full index

Before iterating over all cache entries, ensure that a sparse index is
expanded to a full one so we do not miss blobs to scan. Later, this can
integrate more carefully with sparse indexes with proper testing.

Signed-off-by: Derrick Stolee <redacted>
Reviewed-by: Elijah Newren <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/grep.c
git clone https://git.99rst.org/PROJECT