summaryrefslogtreecommitdiff
path: root/refspec.c
diff options
context:
space:
mode:
authorCalvin Wan <calvinwan@google.com>2023-07-05 17:09:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-07-05 18:42:31 (GMT)
commit91c080dff511b7a81f91d1cc79589b49e16a2b7a (patch)
tree5730d26a094848ca2f652c507ce54519b981ef84 /refspec.c
parentda9502ff4dc495471a1a080dc297cd6e4628c10c (diff)
downloadgit-91c080dff511b7a81f91d1cc79589b49e16a2b7a.zip
git-91c080dff511b7a81f91d1cc79589b49e16a2b7a.tar.gz
git-91c080dff511b7a81f91d1cc79589b49e16a2b7a.tar.bz2
git-compat-util: move alloc macros to git-compat-util.h
alloc_nr, ALLOC_GROW, and ALLOC_GROW_BY are commonly used macros for dynamic array allocation. Moving these macros to git-compat-util.h with the other alloc macros focuses alloc.[ch] to allocation for Git objects and additionally allows us to remove inclusions to alloc.h from files that solely used the above macros. Signed-off-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refspec.c')
-rw-r--r--refspec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/refspec.c b/refspec.c
index 57f6c2a..d60932f 100644
--- a/refspec.c
+++ b/refspec.c
@@ -1,5 +1,4 @@
#include "git-compat-util.h"
-#include "alloc.h"
#include "gettext.h"
#include "hash.h"
#include "hex.h"