main v1.3 remove the redundant space after the branch name

This commit is contained in:
Shautvast 2025-10-02 15:26:58 +02:00
parent 71b26ffaa4
commit 3ebfa2412e
2 changed files with 2 additions and 3 deletions

View file

@ -20,8 +20,6 @@ dependencies {
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform) testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
bundledPlugin("Git4Idea") bundledPlugin("Git4Idea")
} }
} }
intellijPlatform { intellijPlatform {
@ -33,6 +31,7 @@ intellijPlatform {
changeNotes = """ changeNotes = """
1.1 Initial version: insert branchname in commit dialog. No configuration needed. 1.1 Initial version: insert branchname in commit dialog. No configuration needed.
1.2 No code changes. Plugin was mistakenly compiled using jdk22 so it didn't work. 1.2 No code changes. Plugin was mistakenly compiled using jdk22 so it didn't work.
1.3 minor fix for redundant space after the branch name
""".trimIndent() """.trimIndent()
} }
} }

View file

@ -32,7 +32,7 @@ class BranchNameCheckinHandlerFactory : CheckinHandlerFactory() {
return repository?.let { return repository?.let {
val branchName = it.currentBranchName val branchName = it.currentBranchName
if (branchName != null && !message.startsWith("${branchName} ")) { if (branchName != null && !message.startsWith("${branchName} ")) {
"${it.currentBranchName ?: ""} ${message} " "${it.currentBranchName ?: ""} ${message}"
} else { } else {
message message
} }