summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-12-23 18:14:55 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-26 21:04:32 +0100
commita28fe2d9014758e18d870b1086b5a0c2be76d11f (patch)
treeb62a86dfd035a6ef9a4dea3fa190e9284f8ef5c7
parenthttp.h: remove unnecessary include (diff)
downloadgit-a28fe2d9014758e18d870b1086b5a0c2be76d11f.tar.xz
git-a28fe2d9014758e18d870b1086b5a0c2be76d11f.zip
line-log.h: remove unnecessary include
The unnecessary include in the header transitively pulled in some other headers actually needed by source files, though. Have those source files explicitly include the headers they need. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--line-log.c1
-rw-r--r--line-log.h2
-rw-r--r--log-tree.c1
3 files changed, 2 insertions, 2 deletions
diff --git a/line-log.c b/line-log.c
index a878cb7810..c276ccec54 100644
--- a/line-log.c
+++ b/line-log.c
@@ -1,4 +1,5 @@
#include "git-compat-util.h"
+#include "diffcore.h"
#include "line-range.h"
#include "hex.h"
#include "tag.h"
diff --git a/line-log.h b/line-log.h
index 4291da8d79..e9dadbc1a5 100644
--- a/line-log.h
+++ b/line-log.h
@@ -1,8 +1,6 @@
#ifndef LINE_LOG_H
#define LINE_LOG_H
-#include "diffcore.h"
-
struct rev_info;
struct commit;
struct string_list;
diff --git a/log-tree.c b/log-tree.c
index 504da6b519..337b9334cd 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -2,6 +2,7 @@
#include "commit-reach.h"
#include "config.h"
#include "diff.h"
+#include "diffcore.h"
#include "environment.h"
#include "hex.h"
#include "object-name.h"