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/t4109-apply-multifrag.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 / t4109-apply-multifrag.sh` 36 lines ยท 809 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2005 Junio C Hamano 4 # Copyright (c) 2005 Robert Fitzsimons 5 # 6 7 test_description='git apply test patches with multiple fragments.' 8 9 10 . ./test-lib.sh 11 12 cp "$TEST_DIRECTORY/t4109/patch1.patch" . 13 cp "$TEST_DIRECTORY/t4109/patch2.patch" . 14 cp "$TEST_DIRECTORY/t4109/patch3.patch" . 15 cp "$TEST_DIRECTORY/t4109/patch4.patch" . 16 17 test_expect_success 'git apply (1)' ' 18 git apply patch1.patch patch2.patch && 19 test_cmp "$TEST_DIRECTORY/t4109/expect-1" main.c 20 ' 21 rm -f main.c 22 23 test_expect_success 'git apply (2)' ' 24 git apply patch1.patch patch2.patch patch3.patch && 25 test_cmp "$TEST_DIRECTORY/t4109/expect-2" main.c 26 ' 27 rm -f main.c 28 29 test_expect_success 'git apply (3)' ' 30 git apply patch1.patch patch4.patch && 31 test_cmp "$TEST_DIRECTORY/t4109/expect-3" main.c 32 ' 33 mv main.c main.c.git 34 35 test_done 36