Monorepo for Tangled tangled.org

knotserver/git: removed unused TagReference struct #602

merged opened by handle.invalid targeting master from [deleted fork]: knotserver/git/cleanup
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:s6urhemct6hiuyd5ytdlvnuw/sh.tangled.repo.pull/3lzosxsky2r22
-27
Diff #0
-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 { ··· 367 359 func (i *infoWrapper) Sys() any { 368 360 return nil 369 361 } 370 - 371 - func (t *TagReference) Name() string { 372 - return t.ref.Name().Short() 373 - } 374 - 375 - func (t *TagReference) Message() string { 376 - if t.tag != nil { 377 - return t.tag.Message 378 - } 379 - return "" 380 - } 381 - 382 - func (t *TagReference) TagObject() *object.Tag { 383 - return t.tag 384 - } 385 - 386 - func (t *TagReference) Hash() plumbing.Hash { 387 - return t.ref.Hash() 388 - }

History

1 round 0 comments
sign up or login to add to the discussion
handle.invalid submitted #0
1 commit
expand
30239466
knotserver/git: removed unused TagReference struct
expand 0 comments
pull request successfully merged