]> git.ipfire.org Git - thirdparty/git.git/commitdiff
log-tree: replace include of revision.h with simple forward declaration
authorElijah Newren <newren@gmail.com>
Tue, 16 May 2023 06:33:58 +0000 (06:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jun 2023 20:39:53 +0000 (13:39 -0700)
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff-tree.c
log-tree.c
log-tree.h

index f3a458bb870af27032c2588031a0df177a744285..d62caa6c8b7cee9c33c065208d201cbf22543993 100644 (file)
@@ -9,6 +9,7 @@
 #include "submodule.h"
 #include "read-cache-ll.h"
 #include "repository.h"
+#include "revision.h"
 #include "tree.h"
 
 static struct rev_info log_tree_opt;
index f4b22a60cc53c7b0d723de1fce1a00282ddd41ff..07d0b47b168785255c64c0aec333136f108f5915 100644 (file)
@@ -16,6 +16,7 @@
 #include "reflog-walk.h"
 #include "refs.h"
 #include "replace-object.h"
+#include "revision.h"
 #include "string-list.h"
 #include "color.h"
 #include "gpg-interface.h"
index e7e4641cf83c5b7cfd4457b54a88115723ac979d..bdb64328154e519ceaa4138045ee4124c0fb3381 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef LOG_TREE_H
 #define LOG_TREE_H
 
-#include "revision.h"
+struct rev_info;
 
 struct log_info {
        struct commit *commit, *parent;