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

Implement "edit commit" in terms of the new EditRebase function

This commit is contained in:
Stefan Haller
2023-04-05 13:03:50 +02:00
parent 5645a662de
commit d50c58b4c6
3 changed files with 3 additions and 26 deletions

View File

@ -301,7 +301,7 @@ func (self *LocalCommitsController) edit(commit *models.Commit) error {
return self.c.WithWaitingStatus(self.c.Tr.RebasingStatus, func() error {
self.c.LogAction(self.c.Tr.Actions.EditCommit)
err := self.git.Rebase.InteractiveRebaseBreakAfter(self.model.Commits, self.context().GetSelectedLineIdx())
err := self.git.Rebase.EditRebase(commit.Sha)
return self.helpers.MergeAndRebase.CheckMergeOrRebase(err)
})
}