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