Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t3433-rebase-across-mode-change.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t3433-rebase-across-mode-change.sh` 48 lines ยท 1029 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git rebase across mode change' 4 5 . ./test-lib.sh 6 7 test_expect_success 'setup' ' 8 mkdir DS && 9 >DS/whatever && 10 git add DS && 11 git commit -m base && 12 13 git branch side1 && 14 git branch side2 && 15 16 git checkout side1 && 17 git rm -rf DS && 18 test_ln_s_add unrelated DS && 19 git commit -m side1 && 20 21 git checkout side2 && 22 >unrelated && 23 git add unrelated && 24 git commit -m commit1 && 25 26 echo >>unrelated && 27 git commit -am commit2 28 ' 29 30 test_expect_success 'rebase changes with the apply backend' ' 31 test_when_finished "git rebase --abort || true" && 32 git checkout -b apply-backend side2 && 33 git rebase side1 34 ' 35 36 test_expect_success 'rebase changes with the merge backend' ' 37 test_when_finished "git rebase --abort || true" && 38 git checkout -b merge-backend side2 && 39 git rebase -m side1 40 ' 41 42 test_expect_success 'rebase changes with the merge backend with a delay' ' 43 test_when_finished "git rebase --abort || true" && 44 git checkout -b merge-delay-backend side2 && 45 git rebase -m --exec "sleep 1" side1 46 ' 47 48 test_done