unsigned int init_len;
unsigned int cur_len;
char *hex;
- const unsigned char *hash;
+ const struct object_id *oid;
};
static inline char get_hex_char_from_oid(const struct object_id *oid,
int cmp;
current = nth_packed_object_sha1(p, mid);
- cmp = hashcmp(mad->hash, current);
+ cmp = hashcmp(mad->oid->hash, current);
if (!cmp) {
match = 1;
first = mid;
mad.init_len = len;
mad.cur_len = len;
mad.hex = hex;
- mad.hash = oid->hash;
+ mad.oid = oid;
find_abbrev_len_packed(&mad);