1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-07 01:09:45 +02:00

some more standardisation for diffing

This commit is contained in:
Jesse Duffield
2020-08-19 22:57:22 +10:00
parent 2855b5b4d5
commit 7561f5aa32
7 changed files with 60 additions and 48 deletions

View File

@ -24,3 +24,7 @@ func (c *Commit) ShortSha() string {
func (c *Commit) NameWithSha() string {
return fmt.Sprintf("%s %s", c.Sha[:7], c.Name)
}
func (c *Commit) RefName() string {
return c.Sha
}