]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
Revert "unpack-trees: improve performance of next_cache_entry"
authorVictoria Dye <vdye@github.com>
Thu, 17 Mar 2022 15:55:36 +0000 (15:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Mar 2022 16:13:21 +0000 (09:13 -0700)
commit99430aa12cddf0af85d24316cea4a02dc4a711b6
tree9b10ef4dc82339fe0e65e2714c6b6c32047f0842
parentbfc763df773ccfc10eb38a24caa111d0fcbc5493
Revert "unpack-trees: improve performance of next_cache_entry"

This reverts commit f2a454e0a5 (unpack-trees: improve performance of
next_cache_entry, 2021-11-29).

The "hint" value was originally needed to improve performance in 'git reset
-- <pathspec>' caused by 'cache_bottom' lagging behind its correct value
when using a sparse index. The 'cache_bottom' tracking has since been
corrected, removing the need for an additional "pseudo-cache_bottom"
tracking variable.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c