8 struct loose_object_map
{
9 kh_oid_map_t
*to_compat
;
10 kh_oid_map_t
*to_storage
;
13 void loose_object_map_init(struct loose_object_map
**map
);
14 void loose_object_map_clear(struct loose_object_map
**map
);
15 int repo_loose_object_map_oid(struct repository
*repo
,
16 const struct object_id
*src
,
17 const struct git_hash_algo
*dest_algo
,
18 struct object_id
*dest
);
19 int repo_add_loose_object_map(struct repository
*repo
, const struct object_id
*oid
,
20 const struct object_id
*compat_oid
);
21 int repo_read_loose_object_map(struct repository
*repo
);
22 int repo_write_loose_object_map(struct repository
*repo
);