| 316 | } |
| 317 | |
| 318 | static void hash_object_body(const struct git_hash_algo *algo, struct git_hash_ctx *c, |
| 319 | const void *buf, unsigned long len, |
| 320 | struct object_id *oid, |
| 321 | char *hdr, int *hdrlen) |
| 322 | { |
| 323 | algo->init_fn(c); |
| 324 | git_hash_update(c, hdr, *hdrlen); |
| 325 | git_hash_update(c, buf, len); |
| 326 | git_hash_final_oid(oid, c); |
| 327 | } |
| 328 | |
| 329 | void write_object_file_prepare(const struct git_hash_algo *algo, |
| 330 | const void *buf, unsigned long len, |
no test coverage detected