mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-02 09:59:07 +02:00
Print the name of the branch when we check it out
This commit is contained in:
parent
5ef4af6b55
commit
ef1259a87a
@ -85,6 +85,7 @@ internal fun getVersion(projectDir: String, onlyStable: Boolean): Pair<Semver, O
|
||||
}
|
||||
|
||||
internal fun Git.checkoutBranch(name: String) {
|
||||
println("Checking out $name")
|
||||
val shouldCreateBranch = this.branchList().call().any { it.name == "refs/heads/$name" }.not()
|
||||
val checkoutCommand = checkout()
|
||||
.setCreateBranch(shouldCreateBranch)
|
||||
|
Loading…
Reference in New Issue
Block a user