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:
parent
1efb565b22
commit
b09000194a
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user