aboutsummaryrefslogtreecommitdiff
path: root/object/tag/tag.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 14:49:17 +0000
committerGravatar Runxi Yu2026-03-25 15:02:22 +0000
commit7847657e0820af98120031f719b8ede635ad8c07 (patch)
tree8c4439c78f72f1382edc809b49be33115847b6e7 /object/tag/tag.go
parentobject: Remove type.go (diff)
signatureNo signature
object: Split each object type into its own package v0.1.108
Diffstat (limited to 'object/tag/tag.go')
-rw-r--r--object/tag/tag.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/object/tag/tag.go b/object/tag/tag.go
new file mode 100644
index 00000000..4301557e
--- /dev/null
+++ b/object/tag/tag.go
@@ -0,0 +1,17 @@
+// Package tag provides representations, parsers, and serializers for tag objects.
+package tag
+
+import (
+ objectid "codeberg.org/lindenii/furgit/object/id"
+ objectsignature "codeberg.org/lindenii/furgit/object/signature"
+ objecttype "codeberg.org/lindenii/furgit/object/type"
+)
+
+// Tag represents a Git annotated tag object.
+type Tag struct {
+ Target objectid.ObjectID
+ TargetType objecttype.Type
+ Name []byte
+ Tagger *objectsignature.Signature
+ Message []byte
+}