Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotserver/git: removed unused TagReference struct

Signed-off-by: noClaps <git@zerolimits.dev>

authored by

noClaps and committed by
Tangled
4f47c387 1b73d417

-27
-27
knotserver/git/git.go
··· 27 27 h plumbing.Hash 28 28 } 29 29 30 - // TagReference is used to list both tag and non-annotated tags. 31 - // Non-annotated tags should only contains a reference. 32 - // Annotated tags should contain its reference and its tag information. 33 - type TagReference struct { 34 - ref *plumbing.Reference 35 - tag *object.Tag 36 - } 37 - 38 30 // infoWrapper wraps the property of a TreeEntry so it can export fs.FileInfo 39 31 // to tar WriteHeader 40 32 type infoWrapper struct { ··· 358 366 359 367 func (i *infoWrapper) Sys() any { 360 368 return nil 361 - } 362 - 363 - func (t *TagReference) Name() string { 364 - return t.ref.Name().Short() 365 - } 366 - 367 - func (t *TagReference) Message() string { 368 - if t.tag != nil { 369 - return t.tag.Message 370 - } 371 - return "" 372 - } 373 - 374 - func (t *TagReference) TagObject() *object.Tag { 375 - return t.tag 376 - } 377 - 378 - func (t *TagReference) Hash() plumbing.Hash { 379 - return t.ref.Hash() 380 369 }