| 5 | #include "hash-lookup.h" |
| 6 | |
| 7 | void oid_array_append(struct oid_array *array, const struct object_id *oid) |
| 8 | { |
| 9 | ALLOC_GROW(array->oid, array->nr + 1, array->alloc); |
| 10 | oidcpy(&array->oid[array->nr++], oid); |
| 11 | if (!oid->algo) |
| 12 | oid_set_algo(&array->oid[array->nr - 1], the_hash_algo); |
| 13 | array->sorted = 0; |
| 14 | } |
| 15 | |
| 16 | static int void_hashcmp(const void *va, const void *vb) |
| 17 | { |
no test coverage detected