| 1201 | } |
| 1202 | |
| 1203 | int reftable_record_equal(struct reftable_record *a, struct reftable_record *b, uint32_t hash_size) |
| 1204 | { |
| 1205 | if (a->type != b->type) |
| 1206 | return 0; |
| 1207 | return reftable_record_vtable(a)->equal( |
| 1208 | reftable_record_data(a), reftable_record_data(b), hash_size); |
| 1209 | } |
| 1210 | |
| 1211 | static int hash_equal(const unsigned char *a, const unsigned char *b, uint32_t hash_size) |
| 1212 | { |