[PATCH 09/12] submodule-config.h: remove unnecessary include
- From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Dec 3, 2023, 06:41 UTC
- Message-ID
- <6d25811965cb55f7044e98ea020da2516664ad35.1701585683.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1617.git.1701585682.gitgitgadget@gmail.com>
From: Elijah Newren <newren@gmail.com>
The unnecessary include in the header transitively pulled in some other headers actually needed by source files, though. Have those source files explicitly include the headers they need.
Signed-off-by: Elijah Newren <newren@gmail.com> --- submodule-config.h | 1 - t/helper/test-submodule.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/submodule-config.h b/submodule-config.h index e8164cca3e4..958f320ac6c 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -3,7 +3,6 @@ #include "config.h" #include "submodule.h" -#include "strbuf.h" #include "tree-walk.h" /** diff --git a/t/helper/test-submodule.c b/t/helper/test-submodule.c index 356e0a26c5a..50c154d0370 100644 --- a/t/helper/test-submodule.c +++ b/t/helper/test-submodule.c @@ -4,6 +4,7 @@ #include "remote.h" #include "repository.h" #include "setup.h" +#include "strbuf.h" #include "submodule-config.h" #include "submodule.h"
-- gitgitgadget