"Elijah Newren via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: Elijah Newren <newren@xxxxxxxxx> > > This allows us to replace includes of cache.h with includes > of the much smaller alloc.h in many places. Yes! This is a very logical thing to do. Allocation and reallocation, especially in the modern world where "memory is tight, let's unmap some packfiles" no longer happens, does not have to be very "git" specific operation and should not have to depend on the rest of "git". Having to include "cache.h" is one trait I consider anything is part of the implementation of "git" that has to be intimate with its internal.