···2727 h plumbing.Hash
2828}
29293030-// TagReference is used to list both tag and non-annotated tags.
3131-// Non-annotated tags should only contains a reference.
3232-// Annotated tags should contain its reference and its tag information.
3333-type TagReference struct {
3434- ref *plumbing.Reference
3535- tag *object.Tag
3636-}
3737-3830// infoWrapper wraps the property of a TreeEntry so it can export fs.FileInfo
3931// to tar WriteHeader
4032type infoWrapper struct {
···367359func (i *infoWrapper) Sys() any {
368360 return nil
369361}
370370-371371-func (t *TagReference) Name() string {
372372- return t.ref.Name().Short()
373373-}
374374-375375-func (t *TagReference) Message() string {
376376- if t.tag != nil {
377377- return t.tag.Message
378378- }
379379- return ""
380380-}
381381-382382-func (t *TagReference) TagObject() *object.Tag {
383383- return t.tag
384384-}
385385-386386-func (t *TagReference) Hash() plumbing.Hash {
387387- return t.ref.Hash()
388388-}