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/t4028-format-patch-mime-headers.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 / t4028-format-patch-mime-headers.sh` 31 lines · 743 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='format-patch mime headers and extra headers do not conflict' 4 5 . ./test-lib.sh 6 7 test_expect_success 'create commit with utf-8 body' ' 8 echo content >file && 9 git add file && 10 git commit -m one && 11 echo more >>file && 12 git commit -a -m "two 13 14 utf-8 body: ñ" 15 ' 16 17 test_expect_success 'patch has mime headers' ' 18 rm -f 0001-two.patch && 19 git format-patch HEAD^ && 20 test_grep -i "content-type: text/plain; charset=utf-8" 0001-two.patch 21 ' 22 23 test_expect_success 'patch has mime and extra headers' ' 24 rm -f 0001-two.patch && 25 git config format.headers "x-foo: bar" && 26 git format-patch HEAD^ && 27 test_grep -i "x-foo: bar" 0001-two.patch && 28 test_grep -i "content-type: text/plain; charset=utf-8" 0001-two.patch 29 ' 30 31 test_done