in src/main/kotlin/com/jetbrains/interactiveRebase/services/ActionService.kt [590:619]
fun redoLastAction() {
if (invoker.undoneCommands.isEmpty()) return
val command = invoker.undoneCommands.removeLast()
val commitToBeRedone = command.commitOfCommand()
if (command is ReorderCommand) {
redoReorder(commitToBeRedone, command)
}
if (command is SquashCommand) {
redoSquash(command)
}
if (command is FixupCommand) {
redoFixup(command)
}
if (command is PickCommand) {
redoPick(commitToBeRedone)
}
if (command is CherryCommand) {
redoCherryPick(commitToBeRedone, command)
}
if (command is RebaseCommand) {
redoRebase(commitToBeRedone)
} else {
commitToBeRedone.addChange(command)
}
invoker.commands.add(command)
modelService.branchInfo.clearSelectedCommits()
}