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/object-file-convert.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 / object-file-convert.h` 25 lines ยท 658 bytes Raw Blame History 1 #ifndef OBJECT_CONVERT_H 2 #define OBJECT_CONVERT_H 3 4 struct repository; 5 struct object_id; 6 struct git_hash_algo; 7 struct strbuf; 8 #include "object.h" 9 10 int repo_oid_to_algop(struct repository *repo, const struct object_id *src, 11 const struct git_hash_algo *to, struct object_id *dest); 12 13 /* 14 * Convert an object file from one hash algorithm to another algorithm. 15 * Return -1 on failure, 0 on success. 16 */ 17 int convert_object_file(struct repository *repo, 18 struct strbuf *outbuf, 19 const struct git_hash_algo *from, 20 const struct git_hash_algo *to, 21 const void *buf, size_t len, 22 enum object_type type, 23 int gentle); 24 25 #endif /* OBJECT_CONVERT_H */