summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-12-23 18:14:52 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-26 21:04:32 +0100
commitbd6cc1d9eccfe2bd364fac91246583e9b6d712c0 (patch)
tree2b9daff5deb945ac20a010e58d8e7d702668325a
parentarchive.h: remove unnecessary include (diff)
downloadgit-bd6cc1d9eccfe2bd364fac91246583e9b6d712c0.tar.xz
git-bd6cc1d9eccfe2bd364fac91246583e9b6d712c0.zip
blame.h: remove unnecessary includes
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--blame.c2
-rw-r--r--blame.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/blame.c b/blame.c
index 141756975b..1a16d4eb6a 100644
--- a/blame.c
+++ b/blame.c
@@ -3,6 +3,7 @@
#include "object-store-ll.h"
#include "cache-tree.h"
#include "mergesort.h"
+#include "commit.h"
#include "convert.h"
#include "diff.h"
#include "diffcore.h"
@@ -10,6 +11,7 @@
#include "hex.h"
#include "path.h"
#include "read-cache.h"
+#include "revision.h"
#include "setup.h"
#include "tag.h"
#include "trace2.h"
diff --git a/blame.h b/blame.h
index 31ddc85f19..5b4e47d44c 100644
--- a/blame.h
+++ b/blame.h
@@ -1,12 +1,9 @@
#ifndef BLAME_H
#define BLAME_H
-#include "commit.h"
#include "oidset.h"
#include "xdiff-interface.h"
-#include "revision.h"
#include "prio-queue.h"
-#include "diff.h"
#define PICKAXE_BLAME_MOVE 01
#define PICKAXE_BLAME_COPY 02