in src/main/kotlin/com/jetbrains/interactiveRebase/services/ActionService.kt [299:318]
fun performPickAction() {
project.takeActionWithDeselecting({
val commits = modelService.getSelectedCommits().reversed()
commits.forEach { commitInfo ->
val changes = commitInfo.getChangesAfterPick().iterator()
while (changes.hasNext()) {
val change = changes.next()
if (change is FixupCommand && change.parentCommit == commitInfo) {
clearFixupOnPick(change, commitInfo)
}
if (change is SquashCommand && change.parentCommit == commitInfo) {
clearSquashOnPick(change, commitInfo)
}
}
val pickCommand = PickCommand(commitInfo)
commitInfo.addChange(pickCommand)
invoker.addCommand(pickCommand)
}
}, modelService.graphInfo)
}