diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-11 13:05:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-11 13:05:59 -0700 |
commit | 5b6cd0fe7b876698007c55c577ae2afd49b50c2b (patch) | |
tree | 88b716b4bbba897e270f507032e4f2e47834da71 /t | |
parent | Merge branch 'pb/stash-refuse-to-kill' (diff) | |
parent | Do not ignore merge options in interactive rebase (diff) | |
download | tgif-5b6cd0fe7b876698007c55c577ae2afd49b50c2b.tar.xz |
Merge branch 'af/rebase-i-merge-options'
"git rebase -i" now honors --strategy and -X options.
* af/rebase-i-merge-options:
Do not ignore merge options in interactive rebase
Diffstat (limited to 't')
-rwxr-xr-x | t/t3404-rebase-interactive.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index d6b4143773..8a6ec039fe 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -950,4 +950,15 @@ test_expect_success 'rebase -i, with <onto> and <upstream> specified as :/quuxer git checkout branch1 ' +test_expect_success 'rebase -i with --strategy and -X' ' + git checkout -b conflict-merge-use-theirs conflict-branch && + git reset --hard HEAD^ && + echo five >conflict && + echo Z >file1 && + git commit -a -m "one file conflict" && + EDITOR=true git rebase -i --strategy=recursive -Xours conflict-branch && + test $(git show conflict-branch:conflict) = $(cat conflict) && + test $(cat file1) = Z +' + test_done |