mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-12-19 09:22:30 +03:00
add description field to ListItem interface
This commit is contained in:
@@ -21,10 +21,6 @@ func (c *Commit) ShortSha() string {
|
||||
return c.Sha[:8]
|
||||
}
|
||||
|
||||
func (c *Commit) NameWithSha() string {
|
||||
return fmt.Sprintf("%s %s", c.Sha[:7], c.Name)
|
||||
}
|
||||
|
||||
func (c *Commit) RefName() string {
|
||||
return c.Sha
|
||||
}
|
||||
@@ -32,3 +28,7 @@ func (c *Commit) RefName() string {
|
||||
func (c *Commit) ID() string {
|
||||
return c.RefName()
|
||||
}
|
||||
|
||||
func (c *Commit) Description() string {
|
||||
return fmt.Sprintf("%s %s", c.Sha[:7], c.Name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user