]> git.ipfire.org Git - thirdparty/git.git/commit
add: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:42 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:46:48 +0000 (13:46 -0700)
commit54beed24d22867a98fc247e1031e3486573f1553
tree7d40d732ec46c65fbc595f7f60d3c0099b380773
parent118a2e8bde0982d219607ff9f260b9cfeb25585c
add: 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>
builtin/add.c