summaryrefslogtreecommitdiffstats
path: root/add-patch.c
diff options
context:
space:
mode:
authorCalvin Wan <calvinwan@google.com>2023-07-05 19:09:24 +0200
committerJunio C Hamano <gitster@pobox.com>2023-07-05 20:42:31 +0200
commit91c080dff511b7a81f91d1cc79589b49e16a2b7a (patch)
tree5730d26a094848ca2f652c507ce54519b981ef84 /add-patch.c
parenttreewide: remove unnecessary includes for wrapper.h (diff)
downloadgit-91c080dff511b7a81f91d1cc79589b49e16a2b7a.tar.xz
git-91c080dff511b7a81f91d1cc79589b49e16a2b7a.zip
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 'add-patch.c')
-rw-r--r--add-patch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/add-patch.c b/add-patch.c
index 53e3248295..f12cbe4166 100644
--- a/add-patch.c
+++ b/add-patch.c
@@ -1,7 +1,6 @@
#include "git-compat-util.h"
#include "add-interactive.h"
#include "advice.h"
-#include "alloc.h"
#include "editor.h"
#include "environment.h"
#include "gettext.h"