aboutsummaryrefslogtreecommitdiff
path: root/object/tag.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/tag.go')
-rw-r--r--object/tag.go18
1 files changed, 18 insertions, 0 deletions
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
+}