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/t4137-apply-submodule.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 / t4137-apply-submodule.sh` 24 lines ยท 483 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git apply handling submodules' 4 5 . ./test-lib.sh 6 . "$TEST_DIRECTORY"/lib-submodule-update.sh 7 8 apply_index () { 9 git diff --ignore-submodules=dirty "..$1" >diff && 10 may_only_be_test_must_fail "$2" && 11 $2 git apply --index diff 12 } 13 14 test_submodule_switch_func "apply_index" 15 16 apply_3way () { 17 git diff --ignore-submodules=dirty "..$1" >diff && 18 may_only_be_test_must_fail "$2" && 19 $2 git apply --3way diff 20 } 21 22 test_submodule_switch_func "apply_3way" 23 24 test_done