aboutsummaryrefslogtreecommitdiff
path: root/obj_tag.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-15 00:00:00 +0000
committerGravatar Runxi Yu2025-11-15 00:00:00 +0000
commitbd398609ce7f516bf6fae617656fff0509c5fc1c (patch)
treee40c636584d2193f7d0716564b5357c30577660c /obj_tag.go
parentREADME: Add example (diff)
signature
Include hashes in object structs
Diffstat (limited to 'obj_tag.go')
-rw-r--r--obj_tag.go4
1 files changed, 2 insertions, 2 deletions
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