add-patch: plug a leak handling the '/' command
[alt-git.git] / loose.h
blob2c2957072c5f04326bdb8ccadf03b13d6d52d198
1 #ifndef LOOSE_H
2 #define LOOSE_H
4 #include "khash.h"
6 struct loose_object_map {
7 kh_oid_map_t *to_compat;
8 kh_oid_map_t *to_storage;
9 };
11 void loose_object_map_init(struct loose_object_map **map);
12 void loose_object_map_clear(struct loose_object_map **map);
13 int repo_loose_object_map_oid(struct repository *repo,
14 const struct object_id *src,
15 const struct git_hash_algo *dest_algo,
16 struct object_id *dest);
17 int repo_add_loose_object_map(struct repository *repo, const struct object_id *oid,
18 const struct object_id *compat_oid);
19 int repo_read_loose_object_map(struct repository *repo);
20 int repo_write_loose_object_map(struct repository *repo);
22 #endif