diff options
author | Elijah Newren <newren@gmail.com> | 2023-05-16 09:33:58 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-21 23:39:53 +0300 |
commit | 0fd2e21571ac3a26e898fa6ce130894fd408080e (patch) | |
tree | 27cb48db22bafa614a266213b3e4bb0215e13edf | |
parent | bc5c5ec0446895f5c4139cd470066beb3c4ac6d5 (diff) |
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>
-rw-r--r-- | builtin/diff-tree.c | 1 | ||||
-rw-r--r-- | log-tree.c | 1 | ||||
-rw-r--r-- | log-tree.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/builtin/diff-tree.c b/builtin/diff-tree.c index f3a458bb87..d62caa6c8b 100644 --- a/builtin/diff-tree.c +++ b/builtin/diff-tree.c @@ -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; diff --git a/log-tree.c b/log-tree.c index f4b22a60cc..07d0b47b16 100644 --- a/log-tree.c +++ b/log-tree.c @@ -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" diff --git a/log-tree.h b/log-tree.h index e7e4641cf8..bdb6432815 100644 --- a/log-tree.h +++ b/log-tree.h @@ -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; |