Open app editor for interactive rebase todo
This commit is contained in:
@@ -23,6 +23,19 @@ class GitEditorCommandsTest {
|
||||
assertNull(parseGitEditorInvocation("git commit --amend --no-edit"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun interactiveRebaseOpensTodoEditor() {
|
||||
val invocation = parseGitEditorInvocation("git rebase -i HEAD~3")
|
||||
|
||||
assertEquals(GitEditorCommandKind.REBASE_TODO, invocation?.kind)
|
||||
assertEquals("Edit Rebase Todo", invocation?.title)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun bareInteractiveRebaseDoesNotOpenTodoEditor() {
|
||||
assertNull(parseGitEditorInvocation("git rebase -i"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun annotatedTagWithoutMessageOpensEditor() {
|
||||
val invocation = parseGitEditorInvocation("git tag -a v1.0")
|
||||
|
||||
Reference in New Issue
Block a user