summaryrefslogtreecommitdiffstats
path: root/diff.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-05-16 08:34:00 +0200
committerJunio C Hamano <gitster@pobox.com>2023-06-21 22:39:53 +0200
commitdf6e8744966bfa66ff289f58372bb060fdc6a124 (patch)
tree7267d8461f4322e931b8b407627c497d6485b538 /diff.h
parentrepository: remove unnecessary include of path.h (diff)
downloadgit-df6e8744966bfa66ff289f58372bb060fdc6a124.tar.xz
git-df6e8744966bfa66ff289f58372bb060fdc6a124.zip
diff.h: remove unnecessary include of oidset.h
This also made it clear that several .c files depended upon various things that oidset included, but had omitted the direct #include for those headers. Add those now. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/diff.h b/diff.h
index 5a0c91bb48..2102df329a 100644
--- a/diff.h
+++ b/diff.h
@@ -4,10 +4,12 @@
#ifndef DIFF_H
#define DIFF_H
+#include "hash-ll.h"
#include "pathspec.h"
-#include "oidset.h"
#include "strbuf.h"
+struct oidset;
+
/**
* The diff API is for programs that compare two sets of files (e.g. two trees,
* one tree and the index) and present the found difference in various ways.