Convert struct ref to use object_id.
Use struct object_id in three fields in struct ref and convert all the necessary places that use it. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
committed by
Jeff King
parent
b419aa25d5
commit
f4e54d02b8
@ -166,7 +166,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
|
||||
if (!check_ref(name, flags))
|
||||
continue;
|
||||
ref = alloc_ref(buffer + 41);
|
||||
hashcpy(ref->old_sha1, old_sha1);
|
||||
hashcpy(ref->old_oid.hash, old_sha1);
|
||||
*list = ref;
|
||||
list = &ref->next;
|
||||
got_at_least_one_head = 1;
|
||||
|
||||
Reference in New Issue
Block a user