]> git.ipfire.org Git - thirdparty/git.git/commit
cache: move ensure_full_index() to cache.h
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:41 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:46:41 +0000 (13:46 -0700)
commit118a2e8bde0982d219607ff9f260b9cfeb25585c
tree7a1452685d7928884e7a40d7a7bff48d283f0f5d
parent95e0321c4dbb81eca5dc1c6f96b176b00a0368d7
cache: move ensure_full_index() to cache.h

Soon we will insert ensure_full_index() calls across the codebase.
Instead of also adding include statements for sparse-index.h, let's just
use the fact that anything that cares about the index already has
cache.h in its includes.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
sparse-index.h