treewide: remove unnecessary includes from header files
There are three kinds of unnecessary includes: * includes which aren't directly needed, but which include some other forgotten include * includes which could be replaced by a simple forward declaration of some structs * includes which aren't needed at all Remove the third kind of include. Subsequent commits (and a subsequent series) will work on removing some of the other kinds of includes. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Dec 23, 2023 at 17:14 UTC
147438e8a0eb31a06cb9aefbf0de8c45e544a4c7
4 files changed
-4
fetch-pack.h
-1
@@ -2,7 +2,6 @@
2
#define FETCH_PACK_H
3
4
#include "string-list.h"
5
-#include "run-command.h"
5
#include "protocol.h"
6
#include "list-objects-filter-options.h"
7
#include "oidset.h"
midx.h
-1
@@ -1,7 +1,6 @@
1
#ifndef MIDX_H
2
#define MIDX_H
3
4
-#include "repository.h"
4
#include "string-list.h"
5
6
struct object_id;
ref-filter.h
-1
@@ -3,7 +3,6 @@
3
4
#include "gettext.h"
5
#include "oid-array.h"
6
-#include "refs.h"
6
#include "commit.h"
7
#include "string-list.h"
8
#include "strvec.h"
submodule-config.h
-1
@@ -2,7 +2,6 @@
2
#define SUBMODULE_CONFIG_CACHE_H
3
4
#include "config.h"
5
-#include "hashmap.h"
5
#include "submodule.h"
6
#include "strbuf.h"
7
#include "tree-walk.h"