Git fork

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>

authored by

Elijah Newren and committed by
Junio C Hamano
147438e8 564d0252

-4
-1
fetch-pack.h
··· 2 2 #define FETCH_PACK_H 3 3 4 4 #include "string-list.h" 5 - #include "run-command.h" 6 5 #include "protocol.h" 7 6 #include "list-objects-filter-options.h" 8 7 #include "oidset.h"
-1
midx.h
··· 1 1 #ifndef MIDX_H 2 2 #define MIDX_H 3 3 4 - #include "repository.h" 5 4 #include "string-list.h" 6 5 7 6 struct object_id;
-1
ref-filter.h
··· 3 3 4 4 #include "gettext.h" 5 5 #include "oid-array.h" 6 - #include "refs.h" 7 6 #include "commit.h" 8 7 #include "string-list.h" 9 8 #include "strvec.h"
-1
submodule-config.h
··· 2 2 #define SUBMODULE_CONFIG_CACHE_H 3 3 4 4 #include "config.h" 5 - #include "hashmap.h" 6 5 #include "submodule.h" 7 6 #include "strbuf.h" 8 7 #include "tree-walk.h"