From 3a4a4cab3ef024e10af7a5bbcaed4b961c60f1db Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 25 Oct 2018 22:47:45 +0200 Subject: rebase -i: recognize short commands without arguments The sequencer instruction 'b', short for 'break', is rejected: error: invalid line 2: b The reason is that the parser expects all short commands to have an argument. Permit short commands without arguments. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- t/t3418-rebase-continue.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/t3418-rebase-continue.sh') diff --git a/t/t3418-rebase-continue.sh b/t/t3418-rebase-continue.sh index 185a491089..b282505aac 100755 --- a/t/t3418-rebase-continue.sh +++ b/t/t3418-rebase-continue.sh @@ -243,7 +243,9 @@ unset GIT_SEQUENCE_EDITOR test_expect_success 'the todo command "break" works' ' rm -f execed && - FAKE_LINES="break exec_>execed" git rebase -i HEAD && + FAKE_LINES="break b exec_>execed" git rebase -i HEAD && + test_path_is_missing execed && + git rebase --continue && test_path_is_missing execed && git rebase --continue && test_path_is_file execed -- cgit v1.2.3