Fix Git editor reword workflow and UI coverage
- show Git editor file paths instead of the submitted git command - surface follow-up commit message editors during interactive rebase reword - add rename-commit UI tests for editor and amend-message solution paths - add broader embedded level solution scenarios for alternate Git workflows
This commit is contained in:
@@ -11,6 +11,7 @@ data class GitEditorInvocation(
|
||||
val command: String,
|
||||
val kind: GitEditorCommandKind,
|
||||
val title: String,
|
||||
val displayPath: String,
|
||||
val initialContent: String = "",
|
||||
)
|
||||
|
||||
@@ -35,6 +36,7 @@ private fun parseGitCommitEditor(command: String, arguments: List<String>): GitE
|
||||
command = command,
|
||||
kind = GitEditorCommandKind.COMMIT_MESSAGE,
|
||||
title = "Edit Commit Message",
|
||||
displayPath = ".git/COMMIT_EDITMSG",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -48,6 +50,7 @@ private fun parseGitRebaseEditor(command: String, arguments: List<String>): GitE
|
||||
command = command,
|
||||
kind = GitEditorCommandKind.REBASE_TODO,
|
||||
title = "Edit Rebase Todo",
|
||||
displayPath = ".git/rebase-merge/git-rebase-todo",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -61,6 +64,7 @@ private fun parseGitTagEditor(command: String, arguments: List<String>): GitEdit
|
||||
command = command,
|
||||
kind = GitEditorCommandKind.TAG_MESSAGE,
|
||||
title = "Edit Tag Message",
|
||||
displayPath = ".git/TAG_EDITMSG",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user