We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72c4dbe + 2542840 commit 570f293Copy full SHA for 570f293
t/t3401-rebase-partial.sh
@@ -47,7 +47,23 @@ test_expect_success 'rebase ignores empty commit' '
47
git commit --allow-empty -m empty &&
48
test_commit D &&
49
git rebase C &&
50
- test $(git log --format=%s C..) = "D"
+ test "$(git log --format=%s C..)" = "D"
51
+'
52
+
53
+test_expect_success 'rebase --keep-empty' '
54
+ git reset --hard D &&
55
+ git rebase --keep-empty C &&
56
+ test "$(git log --format=%s C..)" = "D
57
+empty"
58
59
60
+test_expect_success 'rebase --keep-empty keeps empty even if already in upstream' '
61
+ git reset --hard A &&
62
+ git commit --allow-empty -m also-empty &&
63
+ git rebase --keep-empty D &&
64
+ test "$(git log --format=%s A..)" = "also-empty
65
+D
66
67
'
68
69
test_done
0 commit comments