aboutsummaryrefslogtreecommitdiff
path: root/obj_tag.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit503f2f1bbc69be553d04c621c7ec33931cc1f57d (patch)
tree289b2ea2dc589d6ce7efc3e44966eabb6739d3f2 /obj_tag.go
parentREADME: benmarking -> test (diff)
signature
Add a little bit more of documentation
Diffstat (limited to 'obj_tag.go')
-rw-r--r--obj_tag.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/obj_tag.go b/obj_tag.go
index d21286c8..7279d5c0 100644
--- a/obj_tag.go
+++ b/obj_tag.go
@@ -8,13 +8,20 @@ import (
// Tag represents a Git annotated tag object.
type Tag struct {
- Target Hash
+ // Target represents the hash of the object being tagged.
+ Target Hash
+ // TargetType represents the type of the object being tagged.
TargetType ObjectType
- Name []byte
- Tagger *Ident
- Message []byte
+ // Name represents the name of the tag.
+ Name []byte
+ // Tagger represents the identity of the tagger.
+ Tagger *Ident
+ // Message represents the tag message.
+ Message []byte
}
+// TODO: ExtraHeaders and signatures
+
// StoredTag represents a tag stored in the object database.
type StoredTag struct {
Tag