diff options
author | Calvin Wan <calvinwan@google.com> | 2023-07-05 19:09:24 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-05 20:42:31 +0200 |
commit | 91c080dff511b7a81f91d1cc79589b49e16a2b7a (patch) | |
tree | 5730d26a094848ca2f652c507ce54519b981ef84 /builtin/rev-parse.c | |
parent | treewide: remove unnecessary includes for wrapper.h (diff) | |
download | git-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 'builtin/rev-parse.c')
-rw-r--r-- | builtin/rev-parse.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c index 3e2ee44177..434646b074 100644 --- a/builtin/rev-parse.c +++ b/builtin/rev-parse.c @@ -6,7 +6,6 @@ #define USE_THE_INDEX_VARIABLE #include "builtin.h" #include "abspath.h" -#include "alloc.h" #include "config.h" #include "commit.h" #include "environment.h" |