diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-14 08:50:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-14 19:26:33 +0200 |
commit | 36026a0f30692e341f934f58cd1f780432e9d58b (patch) | |
tree | 8c6ef539b62b4725e0d41b783f8d22065ba853d1 /reset.h | |
parent | global: introduce `USE_THE_REPOSITORY_VARIABLE` macro (diff) | |
download | git-36026a0f30692e341f934f58cd1f780432e9d58b.tar.xz git-36026a0f30692e341f934f58cd1f780432e9d58b.zip |
refs: avoid include cycle with "repository.h"
There is an include cycle between "refs.h" and "repository.h" via
"commit.h", "object.h" and "hash.h". This has the effect that several
definitions of structs and enums will not be visible once we merge
"hash-ll.h" back into "hash.h" in the next commit.
The only reason that "repository.h" includes "refs.h" is the definition
of `enum ref_storage_format`. Move it into "repository.h" and have
"refs.h" include "repository.h" instead to fix the cycle.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reset.h')
0 files changed, 0 insertions, 0 deletions