|
|
|
@ -61,7 +61,7 @@ test_expect_success 'git rebase' '
@@ -61,7 +61,7 @@ test_expect_success 'git rebase' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD^) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
@ -77,7 +77,7 @@ test_expect_success 'git rebase --skip' '
@@ -77,7 +77,7 @@ test_expect_success 'git rebase --skip' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
|
verify_hook_input |
|
|
|
@ -89,7 +89,7 @@ test_expect_success 'git rebase --skip the last one' '
@@ -89,7 +89,7 @@ test_expect_success 'git rebase --skip the last one' '
|
|
|
|
|
test_must_fail git rebase --onto D A && |
|
|
|
|
git rebase --skip && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse E) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
|
verify_hook_input |
|
|
|
@ -103,7 +103,7 @@ test_expect_success 'git rebase -m' '
@@ -103,7 +103,7 @@ test_expect_success 'git rebase -m' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD^) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
@ -119,7 +119,7 @@ test_expect_success 'git rebase -m --skip' '
@@ -119,7 +119,7 @@ test_expect_success 'git rebase -m --skip' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
|
verify_hook_input |
|
|
|
@ -148,7 +148,7 @@ test_expect_success 'git rebase -i (unchanged)' '
@@ -148,7 +148,7 @@ test_expect_success 'git rebase -i (unchanged)' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD^) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
@ -163,7 +163,7 @@ test_expect_success 'git rebase -i (skip)' '
@@ -163,7 +163,7 @@ test_expect_success 'git rebase -i (skip)' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
|
verify_hook_input |
|
|
|
@ -177,7 +177,7 @@ test_expect_success 'git rebase -i (squash)' '
@@ -177,7 +177,7 @@ test_expect_success 'git rebase -i (squash)' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
@ -189,7 +189,7 @@ test_expect_success 'git rebase -i (fixup without conflict)' '
@@ -189,7 +189,7 @@ test_expect_success 'git rebase -i (fixup without conflict)' '
|
|
|
|
|
clear_hook_input && |
|
|
|
|
FAKE_LINES="1 fixup 2" git rebase -i B && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
@ -205,7 +205,7 @@ test_expect_success 'git rebase -i (double edit)' '
@@ -205,7 +205,7 @@ test_expect_success 'git rebase -i (double edit)' '
|
|
|
|
|
git add foo && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD^) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
@ -222,7 +222,7 @@ test_expect_success 'git rebase -i (exec)' '
@@ -222,7 +222,7 @@ test_expect_success 'git rebase -i (exec)' '
|
|
|
|
|
test_must_fail git rebase --continue && |
|
|
|
|
git rebase --continue && |
|
|
|
|
echo rebase >expected.args && |
|
|
|
|
cat >expected.data <<EOF && |
|
|
|
|
cat >expected.data <<-EOF && |
|
|
|
|
$(git rev-parse C) $(git rev-parse HEAD^) |
|
|
|
|
$(git rev-parse D) $(git rev-parse HEAD) |
|
|
|
|
EOF |
|
|
|
|