1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-21 12:16:54 +02:00

Allow resetting author of HEAD commit during rebase

This commit is contained in:
Stefan Haller 2023-04-18 17:33:33 +02:00
parent 1efb565b22
commit b09000194a

View File

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