mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +02:00
add keybinding to create new branch off of commit
retain focus in commits panel surface prompt errors better description
This commit is contained in:
parent
be658e7d64
commit
db826b3c87
9 changed files with 47 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
package commands
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Commit : A git commit
|
||||
type Commit struct {
|
||||
Sha string
|
||||
|
@ -18,3 +20,7 @@ func (c *Commit) ShortSha() string {
|
|||
}
|
||||
return c.Sha[:8]
|
||||
}
|
||||
|
||||
func (c *Commit) NameWithSha() string {
|
||||
return fmt.Sprintf("%s %s", c.Sha[:7], c.Name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue