summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-08-18 12:29:47 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-18 12:29:47 -0700
commit06d11b2e8d9d78d01212024f0f410e4193cbb5bd (patch)
treeb0deab7259afb582a269aadce0547a5f9ee18b44 /t
parentMerge branch 'jn/fix-abbrev' (diff)
parentrebase: support -X to pass through strategy options (diff)
downloadtgif-06d11b2e8d9d78d01212024f0f410e4193cbb5bd.tar.xz
Merge branch 'ml/rebase-x-strategy'
* ml/rebase-x-strategy: rebase: support -X to pass through strategy options
Diffstat (limited to 't')
-rwxr-xr-xt/t3402-rebase-merge.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t3402-rebase-merge.sh b/t/t3402-rebase-merge.sh
index 7b7d07269a..2bea65634a 100755
--- a/t/t3402-rebase-merge.sh
+++ b/t/t3402-rebase-merge.sh
@@ -74,6 +74,15 @@ test_expect_success 'rebase the other way' '
git rebase --merge side
'
+test_expect_success 'rebase -Xtheirs' '
+ git checkout -b conflicting master~2 &&
+ echo "AB $T" >> original &&
+ git commit -mconflicting original &&
+ git rebase -Xtheirs master &&
+ grep AB original &&
+ ! grep 11 original
+'
+
test_expect_success 'merge and rebase should match' '
git diff-tree -r test-rebase test-merge >difference &&
if test -s difference