Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/loose.h # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / loose.h` 26 lines ยท 745 bytes Raw Blame History 1 #ifndef LOOSE_H 2 #define LOOSE_H 3 4 #include "khash.h" 5 6 struct repository; 7 struct odb_source_loose; 8 9 struct loose_object_map { 10 kh_oid_map_t *to_compat; 11 kh_oid_map_t *to_storage; 12 }; 13 14 void loose_object_map_init(struct loose_object_map **map); 15 void loose_object_map_clear(struct loose_object_map **map); 16 int loose_object_map_load(struct odb_source_loose *loose); 17 int repo_loose_object_map_oid(struct repository *repo, 18 const struct object_id *src, 19 const struct git_hash_algo *dest_algo, 20 struct object_id *dest); 21 int repo_add_loose_object_map(struct odb_source_loose *loose, 22 const struct object_id *oid, 23 const struct object_id *compat_oid); 24 int repo_read_loose_object_map(struct repository *repo); 25 26 #endif