rebase --keep-empty -i: add test

There's some special code in rebase -i to deal with --keep-empty. Add test for this combination. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael S. Tsirkin committed May 18, 2014 at 23:28 UTC bd46cfae8224ec2240e58302e8ddd16b701cbe6a
1 file changed +8
t/t3404-rebase-interactive.sh
+8
@@ -67,6 +67,14 @@ test_expect_success 'setup' '
67 SHELL=
68 export SHELL
69
70 +test_expect_success 'rebase --keep-empty' '
71 + git checkout -b emptybranch master &&
72 + git commit --allow-empty -m "empty" &&
73 + git rebase --keep-empty -i HEAD~2 &&
74 + git log --oneline >actual &&
75 + test_line_count = 6 actual
76 +'
77 +
78 test_expect_success 'rebase -i with the exec command' '
79 git checkout master &&
80 (