diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-24 01:09:32 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 02:25:29 +0100 |
commit | 1c02840008b61676373f3703696dc0c07e6eff7d (patch) | |
tree | c50014dc16af7df4a73852aeb9061491fa610016 /replace-object.h | |
parent | dir.h: refactor to no longer need to include cache.h (diff) | |
download | git-1c02840008b61676373f3703696dc0c07e6eff7d.tar.xz git-1c02840008b61676373f3703696dc0c07e6eff7d.zip |
object-store.h: move struct object_info from cache.h
Move struct object_info, and a few related #define's from cache.h to
object-store.h.
A surprising effect of this change is that replace-object.h, which
includes object-store.h, now needs to directly include cache.h since
that is where read_replace_refs is declared and that variable is used
in one of its inline functions. The next commit will move that
declaration and fix that unfortunate new direct inclusion of cache.h.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | replace-object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/replace-object.h b/replace-object.h index 3fbc32eb7b..3c92ae9461 100644 --- a/replace-object.h +++ b/replace-object.h @@ -1,6 +1,7 @@ #ifndef REPLACE_OBJECT_H #define REPLACE_OBJECT_H +#include "cache.h" #include "oidmap.h" #include "repository.h" #include "object-store.h" |