| 406 | } |
| 407 | |
| 408 | static inline void oidread(struct object_id *oid, const unsigned char *hash, |
| 409 | const struct git_hash_algo *algop) |
| 410 | { |
| 411 | memcpy(oid->hash, hash, algop->rawsz); |
| 412 | if (algop->rawsz < GIT_MAX_RAWSZ) |
| 413 | memset(oid->hash + algop->rawsz, 0, GIT_MAX_RAWSZ - algop->rawsz); |
| 414 | oid->algo = hash_algo_by_ptr(algop); |
| 415 | } |
| 416 | |
| 417 | static inline void oidclr(struct object_id *oid, |
| 418 | const struct git_hash_algo *algop) |
no test coverage detected