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/t4106-apply-stdin.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 / t4106-apply-stdin.sh` 30 lines ยท 531 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git apply --numstat - text && 10 git add text && 11 echo goodbye >text && 12 git diff >patch 13 ' 14 15 test_expect_success 'git apply --numstat - < patch' ' 16 echo "1 1 text" >expect && 17 git apply --numstat - actual && 18 test_cmp expect actual 19 ' 20 21 test_expect_success 'git apply --numstat - < patch patch' ' 22 cat >expect <<-\EOF && 23 1 1 text 24 1 1 text 25 EOF 26 git apply --numstat - < patch patch >actual && 27 test_cmp expect actual 28 ' 29 30 test_done