]> git.ipfire.org Git - thirdparty/git.git/commitdiff
diff.h: reduce unnecessary includes
authorElijah Newren <newren@gmail.com>
Sat, 22 Apr 2023 20:17:28 +0000 (20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 19:47:33 +0000 (12:47 -0700)
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
diff.h
http-push.c
line-log.c
pack-bitmap-write.c
reflog.c
tree-diff.c

diff --git a/attr.c b/attr.c
index 2d8aeb8b58cbc0f19f050bce768b06f0c6f4b705..ddf2b0cbc2ec8e0deac3b03cbfffae84af0a075a 100644 (file)
--- a/attr.c
+++ b/attr.c
@@ -20,6 +20,7 @@
 #include "object-store.h"
 #include "setup.h"
 #include "thread-utils.h"
+#include "tree-walk.h"
 
 const char git_attr__true[] = "(builtin)true";
 const char git_attr__false[] = "\0(builtin)false";
diff --git a/diff.h b/diff.h
index 53aeb02a54b1a4133cc1c6908bf39d097b670729..69e574f43151ee8ae4b9da4dfb271cdd21cc3fec 100644 (file)
--- a/diff.h
+++ b/diff.h
@@ -4,7 +4,6 @@
 #ifndef DIFF_H
 #define DIFF_H
 
-#include "tree-walk.h"
 #include "pathspec.h"
 #include "oidset.h"
 #include "strbuf.h"
index 3f184986362f35fa2cd443cf278f953b2f18242d..866ba243a895dc7bea8e7c92b4c24f24381add52 100644 (file)
@@ -16,6 +16,7 @@
 #include "sigchain.h"
 #include "strvec.h"
 #include "tree.h"
+#include "tree-walk.h"
 #include "packfile.h"
 #include "object-store.h"
 #include "commit-reach.h"
index 10c19daec4ae7430ed7a252eadbb61fc6e0e10d3..6a7ac312a43f4a7c6b24f213d2e1d583d0e8b64f 100644 (file)
@@ -18,6 +18,7 @@
 #include "setup.h"
 #include "strvec.h"
 #include "bloom.h"
+#include "tree-walk.h"
 
 static void range_set_grow(struct range_set *rs, size_t extra)
 {
index 3d3fd380654e793f30493325332d815b198ad048..cdffe2ce47d44546aecbf5b569d6400fcf300563 100644 (file)
@@ -19,6 +19,7 @@
 #include "prio-queue.h"
 #include "trace2.h"
 #include "tree.h"
+#include "tree-walk.h"
 
 struct bitmapped_commit {
        struct commit *commit;
index 57dc7c0d051ffc20e41326f00556797fe02af61e..ee1bf5d032c823292a9a57853caf0a9be5ea9bab 100644 (file)
--- a/reflog.c
+++ b/reflog.c
@@ -5,6 +5,7 @@
 #include "refs.h"
 #include "revision.h"
 #include "tree.h"
+#include "tree-walk.h"
 #include "worktree.h"
 
 /* Remember to update object flag allocation in object.h */
index 9ea2dd7a6c3d305420e68258ccc17a08f47ee79d..20bb15f38d9471b9de64fa6bafd620fd18b61901 100644 (file)
@@ -5,6 +5,7 @@
 #include "diff.h"
 #include "diffcore.h"
 #include "tree.h"
+#include "tree-walk.h"
 
 /*
  * Some mode bits are also used internally for computations.