1
0
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:
Alex Plate 2023-11-03 18:32:57 +02:00
parent 5ef4af6b55
commit ef1259a87a
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -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)