(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: { (SQ (Token id: Id.Lit_Chars val: 'format-patch mime headers and extra headers do not conflict' span_id: 6 ) ) } spids: [4] ) ] ) (C {(.)} {(./test-lib.sh)}) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'create commit with utf-8 body' span_id:17))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:21) (Token id:Id.Lit_Chars val:'\techo content >file &&\n' span_id:22) (Token id:Id.Lit_Chars val:'\tgit add file &&\n' span_id:23) (Token id:Id.Lit_Chars val:'\tgit commit -m one &&\n' span_id:24) (Token id:Id.Lit_Chars val:'\techo more >>file &&\n' span_id:25) (Token id:Id.Lit_Chars val:'\tgit commit -a -m "two\n' span_id:26) (Token id:Id.Lit_Chars val:'\n' span_id:27) (Token id:Id.Lit_Chars val:'\tutf-8 body: \xc3\xb1"\n' span_id:28) ) } ) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'patch has mime headers' span_id:35))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:39) (Token id:Id.Lit_Chars val:'\trm -f 0001-two.patch &&\n' span_id:40) (Token id:Id.Lit_Chars val:'\tgit format-patch HEAD^ &&\n' span_id:41) (Token id: Id.Lit_Chars val: '\tgrep -i "content-type: text/plain; charset=utf-8" 0001-two.patch\n' span_id: 42 ) ) } ) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'patch has mime and extra headers' span_id:49))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:53) (Token id:Id.Lit_Chars val:'\trm -f 0001-two.patch &&\n' span_id:54) (Token id:Id.Lit_Chars val:'\tgit config format.headers "x-foo: bar" &&\n' span_id:55) (Token id:Id.Lit_Chars val:'\tgit format-patch HEAD^ &&\n' span_id:56) (Token id:Id.Lit_Chars val:'\tgrep -i "x-foo: bar" 0001-two.patch &&\n' span_id:57) (Token id: Id.Lit_Chars val: '\tgrep -i "content-type: text/plain; charset=utf-8" 0001-two.patch\n' span_id: 58 ) ) } ) (C {(test_done)}) ] )