aboutsummaryrefslogtreecommitdiffstats
path: root/list-objects-filter-options.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-02-24 00:09:30 +0000
committerJunio C Hamano <gitster@pobox.com>2023-02-23 17:25:29 -0800
commita64215b6cd5e67939187475c5b248dc5d13e3d60 (patch)
treed94a55def948e5f8c1c05cef23e7fb69b4ffa198 /list-objects-filter-options.h
parentident.h: move ident-related declarations out of cache.h (diff)
downloadgit-a64215b6cd5e67939187475c5b248dc5d13e3d60.tar.gz
git-a64215b6cd5e67939187475c5b248dc5d13e3d60.zip
object.h: stop depending on cache.h; make cache.h depend on object.h
Things should be able to depend on object.h without pulling in all of cache.h. Move an enum to allow this. Note that a couple files previously depended on things brought in through cache.h indirectly (revision.h -> commit.h -> object.h -> cache.h). As such, this change requires making existing dependencies more explicit in half a dozen files. The inclusion of strbuf.h in some headers if of particular note: these headers directly embedded a strbuf in some new structs, meaning they should have been including strbuf.h all along but were indirectly getting the necessary definitions. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects-filter-options.h')
-rw-r--r--list-objects-filter-options.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/list-objects-filter-options.h b/list-objects-filter-options.h
index 1fe393f447..ef03b45132 100644
--- a/list-objects-filter-options.h
+++ b/list-objects-filter-options.h
@@ -1,9 +1,10 @@
#ifndef LIST_OBJECTS_FILTER_OPTIONS_H
#define LIST_OBJECTS_FILTER_OPTIONS_H
-#include "cache.h"
+#include "object.h"
#include "parse-options.h"
#include "string-list.h"
+#include "strbuf.h"
/*
* The list of defined filters for list-objects.