From b5a545a3d883026d61beac5556fec2a45e9ec3d3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 21:20:35 +0800 Subject: object: Add basic object code --- object/tag.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 object/tag.go (limited to 'object/tag.go') diff --git a/object/tag.go b/object/tag.go new file mode 100644 index 00000000..ec91ffde --- /dev/null +++ b/object/tag.go @@ -0,0 +1,18 @@ +package object + +import "codeberg.org/lindenii/furgit/oid" + +// Tag represents a Git annotated tag object. +type Tag struct { + Target oid.ObjectID + TargetType Type + Name []byte + Tagger *Ident + Message []byte +} + +// ObjectType returns TypeTag. +func (tag *Tag) ObjectType() Type { + _ = tag + return TypeTag +} -- cgit v1.3.1-10-gc9f91