mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-10-31 02:25:35 +03:00
move tags
This commit is contained in:
18
pkg/models/tag.go
Normal file
18
pkg/models/tag.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
// Tag : A git tag
|
||||
type Tag struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
func (t *Tag) RefName() string {
|
||||
return t.Name
|
||||
}
|
||||
|
||||
func (t *Tag) ID() string {
|
||||
return t.RefName()
|
||||
}
|
||||
|
||||
func (t *Tag) Description() string {
|
||||
return "tag " + t.Name
|
||||
}
|
||||
Reference in New Issue
Block a user