add support for git bisect

This commit is contained in:
Jesse Duffield 2022-01-19 18:32:27 +11:00
parent ab84410b41
commit 4ab5e54139
117 changed files with 1013 additions and 104 deletions

View file

@ -1,6 +1,10 @@
package models
import "fmt"
import (
"fmt"
"github.com/jesseduffield/lazygit/pkg/utils"
)
// Commit : A git commit
type Commit struct {
@ -18,10 +22,7 @@ type Commit struct {
}
func (c *Commit) ShortSha() string {
if len(c.Sha) < 8 {
return c.Sha
}
return c.Sha[:8]
return utils.ShortSha(c.Sha)
}
func (c *Commit) RefName() string {