Skip to content

Commit a28fe2d

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f25e65e commit a28fe2d

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

line-log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "git-compat-util.h"
2+
#include "diffcore.h"
23
#include "line-range.h"
34
#include "hex.h"
45
#include "tag.h"

line-log.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef LINE_LOG_H
22
#define LINE_LOG_H
33

4-
#include "diffcore.h"
5-
64
struct rev_info;
75
struct commit;
86
struct string_list;

log-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "commit-reach.h"
33
#include "config.h"
44
#include "diff.h"
5+
#include "diffcore.h"
56
#include "environment.h"
67
#include "hex.h"
78
#include "object-name.h"

0 commit comments

Comments
 (0)