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 --- worktree.c | 1 - 1 file changed, 1 deletion(-) (limited to 'worktree.c') diff --git a/worktree.c b/worktree.c index b4b01340a0..3c547bf109 100644 --- a/worktree.c +++ b/worktree.c @@ -12,7 +12,6 @@ #include "dir.h" #include "wt-status.h" #include "config.h" -#include "wrapper.h" void free_worktrees(struct worktree **worktrees) { -- 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 --- worktree.c | 1 - 1 file changed, 1 deletion(-) (limited to 'worktree.c') diff --git a/worktree.c b/worktree.c index 3c547bf109..2e7cd64509 100644 --- a/worktree.c +++ b/worktree.c @@ -1,6 +1,5 @@ #include "git-compat-util.h" #include "abspath.h" -#include "alloc.h" #include "environment.h" #include "gettext.h" #include "path.h" -- cgit v1.2.3