Merge branch 'ml/rebase-x-strategy'
* ml/rebase-x-strategy: rebase: support -X to pass through strategy options
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user