aboutsummaryrefslogtreecommitdiff
path: root/object/tag/tag.go
blob: f4b36c3036ae384ec97c85b9f29c8d484fea69d8 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package tag

import (
	"lindenii.org/go/furgit/object/id"
	"lindenii.org/go/furgit/object/signature"
	"lindenii.org/go/furgit/object/typ"
)

// Tag represents a fully materialized Git annotated tag object.
//
// Labels: MT-Unsafe.
type Tag struct {
	TargetID     id.ObjectID
	TargetType   typ.Type
	Name         []byte
	Tagger       signature.Signature
	Message      []byte
	ExtraHeaders []ExtraHeader
}

// ExtraHeader represents an extra header in a Git tag object.
type ExtraHeader struct {
	Key   string
	Value []byte
}