aboutsummaryrefslogtreecommitdiffstats
path: root/replace-object.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-02-24 00:09:32 +0000
committerJunio C Hamano <gitster@pobox.com>2023-02-23 17:25:29 -0800
commit1c02840008b61676373f3703696dc0c07e6eff7d (patch)
treec50014dc16af7df4a73852aeb9061491fa610016 /replace-object.h
parentac48adf488794417b1060b5ed2377a9fd4c33c17 (diff)
downloadgit-1c02840008b61676373f3703696dc0c07e6eff7d.tar.gz
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 'replace-object.h')
-rw-r--r--replace-object.h1
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"