From da9502ff4dc495471a1a080dc297cd6e4628c10c Mon Sep 17 00:00:00 2001 From: Calvin Wan Date: Wed, 5 Jul 2023 17:09:23 +0000 Subject: treewide: remove unnecessary includes for wrapper.h Signed-off-by: Calvin Wan Signed-off-by: Junio C Hamano --- sequencer.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sequencer.c') diff --git a/sequencer.c b/sequencer.c index 8dd5bdeb36..556bcabf90 100644 --- a/sequencer.c +++ b/sequencer.c @@ -49,7 +49,6 @@ #include "rebase-interactive.h" #include "reset.h" #include "branch.h" -#include "wrapper.h" #define GIT_REFLOG_ACTION "GIT_REFLOG_ACTION" -- cgit v1.2.3 From 91c080dff511b7a81f91d1cc79589b49e16a2b7a Mon Sep 17 00:00:00 2001 From: Calvin Wan Date: Wed, 5 Jul 2023 17:09:24 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- sequencer.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sequencer.c') diff --git a/sequencer.c b/sequencer.c index 556bcabf90..2cc8fa0fbe 100644 --- a/sequencer.c +++ b/sequencer.c @@ -1,7 +1,6 @@ #include "git-compat-util.h" #include "abspath.h" #include "advice.h" -#include "alloc.h" #include "config.h" #include "copy.h" #include "environment.h" -- cgit v1.2.3