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>
Elijah Newren committed
Dec 23, 2023 at 17:14 UTC
a28fe2d9014758e18d870b1086b5a0c2be76d11f
3 files changed
+2
-2
line-log.c
+1
@@ -1,4 +1,5 @@
1
#include "git-compat-util.h"
2
+#include "diffcore.h"
3
#include "line-range.h"
4
#include "hex.h"
5
#include "tag.h"
line-log.h
-2
@@ -1,8 +1,6 @@
1
#ifndef LINE_LOG_H
2
#define LINE_LOG_H
3
4
-#include "diffcore.h"
5
-
4
struct rev_info;
5
struct commit;
6
struct string_list;
log-tree.c
+1
@@ -2,6 +2,7 @@
2
#include "commit-reach.h"
3
#include "config.h"
4
#include "diff.h"
5
+#include "diffcore.h"
6
#include "environment.h"
7
#include "hex.h"
8
#include "object-name.h"