]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter-options.h
object.h: stop depending on cache.h; make cache.h depend on object.h
authorElijah Newren <newren@gmail.com>
Fri, 24 Feb 2023 00:09:30 +0000 (00:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 01:25:29 +0000 (17:25 -0800)
commita64215b6cd5e67939187475c5b248dc5d13e3d60
treed94a55def948e5f8c1c05cef23e7fb69b4ffa198
parentb5fa608180d4270b3495258ab098426551a18372
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>
17 files changed:
alloc.c
blame.h
blob.c
cache-tree.h
cache.h
diff-merges.c
diff.h
diffcore-delta.c
fsck.h
help.c
list-objects-filter-options.h
negotiator/noop.c
object.h
shallow.h
t/helper/test-bloom.c
t/helper/test-example-decorate.c
worktree.h