diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-24 03:09:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 04:25:28 +0300 |
commit | 36bf19589055fb71aac0ed6719dfe5b385adc2bf (patch) | |
tree | 7763ee134c0aeb3cbe8d4a5eb7bdeaed5ff4e31d /refs | |
parent | 15db4e7f4ac20cc41902a2479c7784fff8edf2e9 (diff) |
alloc.h: move ALLOC_GROW() functions from cache.h
This allows us to replace includes of cache.h with includes of the much
smaller alloc.h in many places. It does mean that we also need to add
includes of alloc.h in a number of C files.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/packed-backend.c | 3 | ||||
-rw-r--r-- | refs/ref-cache.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 6f5a0709fb..186dcafcd0 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -1,4 +1,5 @@ -#include "../cache.h" +#include "../git-compat-util.h" +#include "../alloc.h" #include "../config.h" #include "../refs.h" #include "refs-internal.h" diff --git a/refs/ref-cache.c b/refs/ref-cache.c index 32afd8a40b..dc1ca49c85 100644 --- a/refs/ref-cache.c +++ b/refs/ref-cache.c @@ -1,4 +1,5 @@ -#include "../cache.h" +#include "../git-compat-util.h" +#include "../alloc.h" #include "../refs.h" #include "refs-internal.h" #include "ref-cache.h" |