Merge branch 'jk/output-prefix-cleanup'
[git/gitster.git] / loose.h
blob28512306e5fec7e57cdab949e8444264c31eab75
1 #ifndef LOOSE_H
2 #define LOOSE_H
4 #include "khash.h"
6 struct repository;
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);
24 #endif