log-tree: replace include of revision.h with simple forward declaration
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
May 16, 2023 at 06:33 UTC
0fd2e21571ac3a26e898fa6ce130894fd408080e
3 files changed
+3
-1
builtin/diff-tree.c
+1
@@ -9,6 +9,7 @@
9
#include "submodule.h"
10
#include "read-cache-ll.h"
11
#include "repository.h"
12
+#include "revision.h"
13
#include "tree.h"
14
15
static struct rev_info log_tree_opt;
log-tree.c
+1
@@ -16,6 +16,7 @@
16
#include "reflog-walk.h"
17
#include "refs.h"
18
#include "replace-object.h"
19
+#include "revision.h"
20
#include "string-list.h"
21
#include "color.h"
22
#include "gpg-interface.h"
log-tree.h
+1
-1
@@ -1,7 +1,7 @@
1
#ifndef LOG_TREE_H
2
#define LOG_TREE_H
3
4
-#include "revision.h"
4
+struct rev_info;
5
6
struct log_info {
7
struct commit *commit, *parent;