1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Allow rewording the head commit during interactive rebase

This commit is contained in:
Stefan Haller
2023-03-03 19:53:15 +01:00
parent 605bc026a1
commit b24955063c
6 changed files with 106 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func NewRebaseCommands(
}
func (self *RebaseCommands) RewordCommit(commits []*models.Commit, index int, message string) error {
if index == 0 {
if models.IsHeadCommit(commits, index) {
// we've selected the top commit so no rebase is required
return self.commit.RewordLastCommit(message)
}