diff.h: reduce unnecessary includes

Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Apr 22, 2023 at 20:17 UTC 0e312eaa12c03043b0ef23021a5a820567ee0efd
7 files changed +6 -1
attr.c
+1
@@ -20,6 +20,7 @@
20 #include "object-store.h"
21 #include "setup.h"
22 #include "thread-utils.h"
23 +#include "tree-walk.h"
24
25 const char git_attr__true[] = "(builtin)true";
26 const char git_attr__false[] = "\0(builtin)false";
diff.h
-1
@@ -4,7 +4,6 @@
4 #ifndef DIFF_H
5 #define DIFF_H
6
7 -#include "tree-walk.h"
7 #include "pathspec.h"
8 #include "oidset.h"
9 #include "strbuf.h"
http-push.c
+1
@@ -16,6 +16,7 @@
16 #include "sigchain.h"
17 #include "strvec.h"
18 #include "tree.h"
19 +#include "tree-walk.h"
20 #include "packfile.h"
21 #include "object-store.h"
22 #include "commit-reach.h"
line-log.c
+1
@@ -18,6 +18,7 @@
18 #include "setup.h"
19 #include "strvec.h"
20 #include "bloom.h"
21 +#include "tree-walk.h"
22
23 static void range_set_grow(struct range_set *rs, size_t extra)
24 {
pack-bitmap-write.c
+1
@@ -19,6 +19,7 @@
19 #include "prio-queue.h"
20 #include "trace2.h"
21 #include "tree.h"
22 +#include "tree-walk.h"
23
24 struct bitmapped_commit {
25 struct commit *commit;
reflog.c
+1
@@ -5,6 +5,7 @@
5 #include "refs.h"
6 #include "revision.h"
7 #include "tree.h"
8 +#include "tree-walk.h"
9 #include "worktree.h"
10
11 /* Remember to update object flag allocation in object.h */
tree-diff.c
+1
@@ -5,6 +5,7 @@
5 #include "diff.h"
6 #include "diffcore.h"
7 #include "tree.h"
8 +#include "tree-walk.h"
9
10 /*
11 * Some mode bits are also used internally for computations.