diff options
| author | 2025-11-15 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-15 00:00:00 +0000 | |
| commit | bd398609ce7f516bf6fae617656fff0509c5fc1c (patch) | |
| tree | e40c636584d2193f7d0716564b5357c30577660c /obj_tag.go | |
| parent | README: Add example (diff) | |
| signature | ||
Include hashes in object structs
Diffstat (limited to 'obj_tag.go')
| -rw-r--r-- | obj_tag.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
