| 125 | } |
| 126 | |
| 127 | void strbuf_add_oid_hex(struct strbuf *sb, const struct object_id *oid) |
| 128 | { |
| 129 | const struct git_hash_algo *algop = oid->algo ? |
| 130 | &hash_algos[oid->algo] : the_hash_algo; |
| 131 | strbuf_grow(sb, algop->hexsz); |
| 132 | hash_to_hex_algop_r(sb->buf + sb->len, oid->hash, algop); |
| 133 | strbuf_setlen(sb, sb->len + algop->hexsz); |
| 134 | } |
no test coverage detected