From f2fd0760f62e79609fef7bfd7ecebb002e8e4ced Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Tue, 10 Nov 2015 02:22:28 +0000 Subject: Convert struct object to object_id struct object is one of the major data structures dealing with object IDs. Convert it to use struct object_id instead of an unsigned char array. Convert get_object_hash to refer to the new member as well. Signed-off-by: brian m. carlson Signed-off-by: Jeff King --- tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tag.c') diff --git a/tag.c b/tag.c index 094616e3f1..ac014837ce 100644 --- a/tag.c +++ b/tag.c @@ -130,11 +130,11 @@ int parse_tag(struct tag *item) data = read_sha1_file(get_object_hash(item->object), &type, &size); if (!data) return error("Could not read %s", - sha1_to_hex(item->object.sha1)); + oid_to_hex(&item->object.oid)); if (type != OBJ_TAG) { free(data); return error("Object %s not a tag", - sha1_to_hex(item->object.sha1)); + oid_to_hex(&item->object.oid)); } ret = parse_tag_buffer(item, data, size); free(data); -- cgit v1.2.1