Skip to content

Commit 0fd2e21

Browse files
newrengitster
authored andcommitted
log-tree: replace include of revision.h with simple forward declaration
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bc5c5ec commit 0fd2e21

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

builtin/diff-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "submodule.h"
1010
#include "read-cache-ll.h"
1111
#include "repository.h"
12+
#include "revision.h"
1213
#include "tree.h"
1314

1415
static struct rev_info log_tree_opt;

log-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "reflog-walk.h"
1717
#include "refs.h"
1818
#include "replace-object.h"
19+
#include "revision.h"
1920
#include "string-list.h"
2021
#include "color.h"
2122
#include "gpg-interface.h"

log-tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef LOG_TREE_H
22
#define LOG_TREE_H
33

4-
#include "revision.h"
4+
struct rev_info;
55

66
struct log_info {
77
struct commit *commit, *parent;

0 commit comments

Comments
 (0)