* [PATCH 1/2] t3404: Add test case for aborted --continue after "edit"
@ 2009-01-15 12:56 Stephan Beyer
2009-01-15 12:56 ` [PATCH 2/2] t3404: Add test case for auto-amending only edited commits " Stephan Beyer
0 siblings, 1 reply; 2+ messages in thread
From: Stephan Beyer @ 2009-01-15 12:56 UTC (permalink / raw)
To: git; +Cc: Johannes Schindelin, Dmitry Potapov, gitster, Stephan Beyer
Add a test case for the bugfix introduced by commit 8beb1f33d
"git-rebase-interactive: do not squash commits on abort".
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
t/t3404-rebase-interactive.sh | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index 7d10a27..1182b46 100755
--- a/t/t3404-rebase-interactive.sh
+++ b/t/t3404-rebase-interactive.sh
@@ -373,6 +373,21 @@ test_expect_success '--continue tries to commit, even for "edit"' '
test $parent = $(git rev-parse HEAD^)
'
+test_expect_success 'aborted --continue does not squash commits after "edit"' '
+ old=$(git rev-parse HEAD) &&
+ test_tick &&
+ FAKE_LINES="edit 1" git rebase -i HEAD^ &&
+ echo "edited again" > file7 &&
+ git add file7 &&
+ (
+ FAKE_COMMIT_MESSAGE=" " &&
+ export FAKE_COMMIT_MESSAGE &&
+ test_must_fail git rebase --continue
+ ) &&
+ test $old = $(git rev-parse HEAD) &&
+ git rebase --abort
+'
+
test_expect_success 'rebase a detached HEAD' '
grandparent=$(git rev-parse HEAD~2) &&
git checkout $(git rev-parse HEAD) &&
--
1.6.1.160.gecdb
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] t3404: Add test case for auto-amending only edited commits after "edit"
2009-01-15 12:56 [PATCH 1/2] t3404: Add test case for aborted --continue after "edit" Stephan Beyer
@ 2009-01-15 12:56 ` Stephan Beyer
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Beyer @ 2009-01-15 12:56 UTC (permalink / raw)
To: git; +Cc: Johannes Schindelin, Dmitry Potapov, gitster, Stephan Beyer
Add a test case for the bugfix introduced by commit c14c3c82d
"git-rebase--interactive: auto amend only edited commit".
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
t/t3404-rebase-interactive.sh | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index 1182b46..2cc8e7a 100755
--- a/t/t3404-rebase-interactive.sh
+++ b/t/t3404-rebase-interactive.sh
@@ -388,6 +388,23 @@ test_expect_success 'aborted --continue does not squash commits after "edit"' '
git rebase --abort
'
+test_expect_success 'auto-amend only edited commits after "edit"' '
+ test_tick &&
+ FAKE_LINES="edit 1" git rebase -i HEAD^ &&
+ echo "edited again" > file7 &&
+ git add file7 &&
+ FAKE_COMMIT_MESSAGE="edited file7 again" git commit &&
+ echo "and again" > file7 &&
+ git add file7 &&
+ test_tick &&
+ (
+ FAKE_COMMIT_MESSAGE="and again" &&
+ export FAKE_COMMIT_MESSAGE &&
+ test_must_fail git rebase --continue
+ ) &&
+ git rebase --abort
+'
+
test_expect_success 'rebase a detached HEAD' '
grandparent=$(git rev-parse HEAD~2) &&
git checkout $(git rev-parse HEAD) &&
--
1.6.1.160.gecdb
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-15 12:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15 12:56 [PATCH 1/2] t3404: Add test case for aborted --continue after "edit" Stephan Beyer
2009-01-15 12:56 ` [PATCH 2/2] t3404: Add test case for auto-amending only edited commits " Stephan Beyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).