path: root/sha1_name.c
diff options
authorStefan Beller <>2018-03-23 17:20:56 (GMT)
committerJunio C Hamano <>2018-03-23 18:06:01 (GMT)
commit0d4a132144a14ae6801523960cbc1939a9bab6c1 (patch)
treec17d22ae0e9b8e01d10c699c9514d8c28345e613 /sha1_name.c
parent90c62155d65a6bec5c2c293c8ece0b22173f63a3 (diff)
object-store: migrate alternates struct and functions from cache.h
Migrate the struct alternate_object_database and all its related functions to the object store as these functions are easier found in that header. The migration is just a verbatim copy, no need to include the object store header at any C file, because cache.h includes repository.h which in turn includes the object-store.h Signed-off-by: Stefan Beller <> Signed-off-by: Junio C Hamano <> Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'sha1_name.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_name.c b/sha1_name.c
index 611c7d2..434025b 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -10,6 +10,7 @@
#include "dir.h"
#include "sha1-array.h"
#include "packfile.h"
+#include "object-store.h"
static int get_oid_oneline(const char *, struct object_id *, struct commit_list *);