fun right()

in src/main/kotlin/com/jetbrains/interactiveRebase/listeners/BranchNavigationListener.kt [236:252]


    fun right() {
        project.takeAction {
            val branch = modelService.getSelectedBranch()

            if (modelService.graphInfo.addedBranch == null ||
                modelService.getSelectedCommits().isEmpty() ||
                branch == modelService.graphInfo.addedBranch
            ) {
                return@takeAction
            }

            modelService.selectSingleCommit(
                modelService.graphInfo.addedBranch!!.currentCommits.last(),
                modelService.graphInfo.addedBranch!!,
            )
        }
    }