summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-02-24 00:09:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-02-24 01:25:28 (GMT)
commit36bf19589055fb71aac0ed6719dfe5b385adc2bf (patch)
tree7763ee134c0aeb3cbe8d4a5eb7bdeaed5ff4e31d /transport.c
parent15db4e7f4ac20cc41902a2479c7784fff8edf2e9 (diff)
downloadgit-36bf19589055fb71aac0ed6719dfe5b385adc2bf.zip
git-36bf19589055fb71aac0ed6719dfe5b385adc2bf.tar.gz
git-36bf19589055fb71aac0ed6719dfe5b385adc2bf.tar.bz2
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 'transport.c')
-rw-r--r--transport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 77a61a9..ac9e06a 100644
--- a/transport.c
+++ b/transport.c
@@ -1,4 +1,5 @@
-#include "cache.h"
+#include "git-compat-util.h"
+#include "alloc.h"
#include "config.h"
#include "transport.h"
#include "hook.h"
@@ -10,6 +11,7 @@
#include "walker.h"
#include "bundle.h"
#include "dir.h"
+#include "gettext.h"
#include "refs.h"
#include "refspec.h"
#include "branch.h"