diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-24 01:09:30 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 02:25:29 +0100 |
commit | a64215b6cd5e67939187475c5b248dc5d13e3d60 (patch) | |
tree | d94a55def948e5f8c1c05cef23e7fb69b4ffa198 /negotiator | |
parent | ident.h: move ident-related declarations out of cache.h (diff) | |
download | git-a64215b6cd5e67939187475c5b248dc5d13e3d60.tar.xz 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 'negotiator')
-rw-r--r-- | negotiator/noop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/negotiator/noop.c b/negotiator/noop.c index 60569b8350..7b72937686 100644 --- a/negotiator/noop.c +++ b/negotiator/noop.c @@ -1,4 +1,4 @@ -#include "cache.h" +#include "git-compat-util.h" #include "noop.h" #include "../commit.h" #include "../fetch-negotiator.h" |