Open app editor for interactive rebase todo
This commit is contained in:
@@ -404,14 +404,15 @@ fun GitHugApp() {
|
||||
}
|
||||
|
||||
fun openGitMessageEditor(invocation: GitEditorInvocation) {
|
||||
val initialContent = runtime.gitEditorInitialContent(currentLevel, repo, invocation)
|
||||
output = buildList {
|
||||
addAll(output)
|
||||
add("$ ${invocation.command}")
|
||||
add("Opened Git message editor")
|
||||
add(if (invocation.kind == GitEditorCommandKind.REBASE_TODO) "Opened Git rebase editor" else "Opened Git message editor")
|
||||
}
|
||||
gitMessageEditorState = GitMessageEditorState(
|
||||
invocation = invocation,
|
||||
content = invocation.initialContent,
|
||||
invocation = invocation.copy(initialContent = initialContent),
|
||||
content = initialContent,
|
||||
)
|
||||
applyRecommendedPaneWeights(persist = false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user