]> git.ipfire.org Git - thirdparty/git.git/commitdiff
line-log.h: remove unnecessary include
authorElijah Newren <newren@gmail.com>
Sat, 23 Dec 2023 17:14:55 +0000 (17:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Dec 2023 20:04:32 +0000 (12:04 -0800)
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>
line-log.c
line-log.h
log-tree.c

index a878cb7810ad3361ac2f91d2c9bbd91c0ae69c26..c276ccec54959199b0a6bf4cb1f37757a359a428 100644 (file)
@@ -1,4 +1,5 @@
 #include "git-compat-util.h"
+#include "diffcore.h"
 #include "line-range.h"
 #include "hex.h"
 #include "tag.h"
index 4291da8d79235d1f477742a11a5fdb67a4346e2e..e9dadbc1a58e2c657511b03f289994143b62bbfb 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef LINE_LOG_H
 #define LINE_LOG_H
 
-#include "diffcore.h"
-
 struct rev_info;
 struct commit;
 struct string_list;
index 504da6b519edff523bd542d07684a4c27a6c10bb..337b9334cdbafe0d3ffd2bf2fd36898f6d112410 100644 (file)
@@ -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"