[PATCH v3 0/1] sequencer: finish parsing the todo list despite an invalid first line
From: Alex Henrie <hidden>
Date: 2023-07-21 05:59:35
Changes from v2:
- Include accidentally omitted file redirect so that the output of
--edit-todo is actually tested
Alex Henrie (1):
sequencer: finish parsing the todo list despite an invalid first line
sequencer.c | 2 +-
t/t3404-rebase-interactive.sh | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
Range-diff against v2:
1: 8005d81440 ! 1: b1af2df3f5 sequencer: finish parsing the todo list despite an invalid first line
@@ t/t3404-rebase-interactive.sh: test_expect_success 'static check of bad command'
+ grep "cannot .fixup. without a previous commit" actual &&
+ grep "You can fix this with .git rebase --edit-todo.." actual &&
+ grep -v "^#" .git/rebase-merge/git-rebase-todo >orig &&
-+ test_must_fail git rebase --edit-todo &&
++ test_must_fail git rebase --edit-todo 2>actual &&
+ grep "cannot .fixup. without a previous commit" actual &&
+ grep "You can fix this with .git rebase --edit-todo.." actual &&
+ grep -v "^#" .git/rebase-merge/git-rebase-todo >actual &&
--
2.41.0