refactor: introduce a struct to pack the

`PrepareInteractiveRebaseCommand` function
This commit is contained in:
AzraelSec 2023-04-02 11:07:40 +02:00 committed by Jesse Duffield
parent 711be78811
commit ddcd6be245
2 changed files with 51 additions and 14 deletions

View file

@ -111,7 +111,11 @@ func (self *PatchCommands) MovePatchToSelectedCommit(commits []*models.Commit, s
}
})
err := self.rebase.PrepareInteractiveRebaseCommand(commits[baseIndex].Sha, todoLines, true, false).Run()
err := self.rebase.PrepareInteractiveRebaseCommand(PrepareInteractiveRebaseCommandOpts{
baseShaOrRoot: commits[baseIndex].Sha,
todoLines: todoLines,
overrideEditor: true,
}).Run()
if err != nil {
return err
}