mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Allow rewording the head commit during interactive rebase
This commit is contained in:
parent
605bc026a1
commit
b24955063c
6 changed files with 106 additions and 2 deletions
|
@ -65,3 +65,7 @@ func (c *Commit) IsMerge() bool {
|
|||
func (c *Commit) IsTODO() bool {
|
||||
return c.Action != ""
|
||||
}
|
||||
|
||||
func IsHeadCommit(commits []*Commit, index int) bool {
|
||||
return !commits[index].IsTODO() && (index == 0 || commits[index-1].IsTODO())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue