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/t4101-apply-nonl.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 / t4101-apply-nonl.sh` 32 lines ยท 563 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2005 Junio C Hamano 4 # 5 6 test_description='git apply should handle files with incomplete lines. 7 8 ' 9 10 . ./test-lib.sh 11 12 # setup 13 14 (echo a; echo b) >frotz.0 15 (echo a; echo b; echo c) >frotz.1 16 (echo a; echo b | tr -d '\012') >frotz.2 17 (echo a; echo c; echo b | tr -d '\012') >frotz.3 18 19 for i in 0 1 2 3 20 do 21 for j in 0 1 2 3 22 do 23 test $i -eq $j && continue 24 cat frotz.$i >frotz 25 test_expect_success "apply diff between $i and $j" ' 26 git apply <"$TEST_DIRECTORY"/t4101/diff.$i-$j && 27 test_cmp frotz.$j frotz 28 ' 29 done 30 done 31 32 test_done