Git fork

treewide: remove unnecessary cache.h includes

We had several header files include cache.h unnecessarily. Remove
those. These have all been verified via both ensuring that
gcc -E $HEADER | grep '"cache.h"'
found no hits and that
cat >temp.c <<EOF &&
#include "git-compat-util.h"
#include "$HEADER"
int main() {}
EOF
gcc -c temp.c
successfully compiles without warnings.

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
ba3d1c73 f332121e

+7 -11
+1 -1
checkout.h
··· 1 1 #ifndef CHECKOUT_H 2 2 #define CHECKOUT_H 3 3 4 - #include "cache.h" 4 + #include "hash.h" 5 5 6 6 /* 7 7 * Check if the branch name uniquely matches a branch name on a remote
+3 -1
entry.h
··· 1 1 #ifndef ENTRY_H 2 2 #define ENTRY_H 3 3 4 - #include "cache.h" 5 4 #include "convert.h" 5 + 6 + struct cache_entry; 7 + struct index_state; 6 8 7 9 struct checkout { 8 10 struct index_state *istate;
-1
khash.h
··· 26 26 #ifndef __AC_KHASH_H 27 27 #define __AC_KHASH_H 28 28 29 - #include "cache.h" 30 29 #include "hashmap.h" 31 30 32 31 #define AC_VERSION_KHASH_H "0.2.8"
-1
oidmap.h
··· 1 1 #ifndef OIDMAP_H 2 2 #define OIDMAP_H 3 3 4 - #include "cache.h" 5 4 #include "hashmap.h" 6 5 7 6 /*
+1 -1
pretty.h
··· 1 1 #ifndef PRETTY_H 2 2 #define PRETTY_H 3 3 4 - #include "cache.h" 5 4 #include "date.h" 6 5 #include "string-list.h" 7 6 8 7 struct commit; 8 + struct repository; 9 9 struct strbuf; 10 10 struct process_trailer_options; 11 11
-2
reflog-walk.h
··· 1 1 #ifndef REFLOG_WALK_H 2 2 #define REFLOG_WALK_H 3 3 4 - #include "cache.h" 5 - 6 4 struct commit; 7 5 struct reflog_walk_info; 8 6 struct date_mode;
-1
refs/refs-internal.h
··· 1 1 #ifndef REFS_REFS_INTERNAL_H 2 2 #define REFS_REFS_INTERNAL_H 3 3 4 - #include "cache.h" 5 4 #include "refs.h" 6 5 #include "iterator.h" 7 6
-1
remote.h
··· 1 1 #ifndef REMOTE_H 2 2 #define REMOTE_H 3 3 4 - #include "cache.h" 5 4 #include "parse-options.h" 6 5 #include "hashmap.h" 7 6 #include "refspec.h"
+1 -1
sequencer.h
··· 1 1 #ifndef SEQUENCER_H 2 2 #define SEQUENCER_H 3 3 4 - #include "cache.h" 5 4 #include "strbuf.h" 6 5 #include "wt-status.h" 7 6 8 7 struct commit; 8 + struct index_state; 9 9 struct repository; 10 10 11 11 const char *git_path_commit_editmsg(void);
+1 -1
xdiff-interface.h
··· 1 1 #ifndef XDIFF_INTERFACE_H 2 2 #define XDIFF_INTERFACE_H 3 3 4 - #include "cache.h" 4 + #include "hash.h" 5 5 #include "xdiff/xdiff.h" 6 6 7 7 /*