mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 04:45:47 +02:00
add support for git bisect
This commit is contained in:
parent
ab84410b41
commit
4ab5e54139
117 changed files with 1013 additions and 104 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue