From bd398609ce7f516bf6fae617656fff0509c5fc1c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Nov 2025 00:00:00 +0000 Subject: Include hashes in object structs --- obj_tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obj_tag.go') diff --git a/obj_tag.go b/obj_tag.go index 348afd48..f3d96bd1 100644 --- a/obj_tag.go +++ b/obj_tag.go @@ -8,7 +8,7 @@ import ( // Tag models an annotated Git tag object. type Tag struct { - objectBase + Hash Hash Target Hash TargetType ObjType @@ -25,7 +25,7 @@ func (*Tag) ObjType() ObjType { // parseTag parses a tag object body. func parseTag(id Hash, body []byte) (*Tag, error) { t := new(Tag) - t.objectBase = objectBase{Hash: id} + t.Hash = id i := 0 var haveTarget, haveType bool -- cgit v1.3.1-10-gc9f91