Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
demonstrate broken 'git cherry-pick three one two'
author
Martin von Zweigbergk
<martinvonz@gmail.com>
Wed, 29 Aug 2012 06:15:55 +0000
(23:15 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 30 Aug 2012 21:00:18 +0000
(14:00 -0700)
Cherry-picking commits out of order (w.r.t. commit time stamp) doesn't
currently work. Add a test case to demonstrate it.
Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3508-cherry-pick-many-commits.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ca92e59
)
diff --git
a/t/t3508-cherry-pick-many-commits.sh
b/t/t3508-cherry-pick-many-commits.sh
index 75f7ff4f2fe21e86e0a26fe5a6c2119bef38404c..afda2d5825f6c087e22a7830d2b1aebb50923c3a 100755
(executable)
--- a/
t/t3508-cherry-pick-many-commits.sh
+++ b/
t/t3508-cherry-pick-many-commits.sh
@@
-44,6
+44,21
@@
test_expect_success 'cherry-pick first..fourth works' '
check_head_differs_from fourth
'
check_head_differs_from fourth
'
+test_expect_failure 'cherry-pick three one two works' '
+ git checkout -f first &&
+ test_commit one &&
+ test_commit two &&
+ test_commit three &&
+ git checkout -f master &&
+ git reset --hard first &&
+ git cherry-pick three one two &&
+ git diff --quiet three &&
+ git diff --quiet HEAD three &&
+ test "$(git log --reverse --format=%s first..)" = "three
+one
+two"
+'
+
test_expect_success 'output to keep user entertained during multi-pick' '
cat <<-\EOF >expected &&
[master OBJID] second
test_expect_success 'output to keep user entertained during multi-pick' '
cat <<-\EOF >expected &&
[master OBJID] second