mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +02:00
add description field to ListItem interface
This commit is contained in:
parent
63209ef71e
commit
8da93fd762
9 changed files with 36 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue