(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description) op: assign_op.Equal rhs: {(SQ <'rebase should handle arbitrary git message'>)} spids: [4] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<F>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'> ch:E) <OF>} here_end_span_id: 29 stdin_parts: [ <'This is an example of a commit log message\n'> <'that does not conform to git commit convention.\n'> <'\n'> <'It has two paragraphs, but its first paragraph is not friendly\n'> <'to oneline summary format.\n'> ] ) ) ] more_env: [] do_fork: T ) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<G>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'> ch:E) <OF>} here_end_span_id: 41 stdin_parts: [<'commit log message containing a diff\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {<setup>} { (SQ <'\n'> <'\n'> <'\t>file1 &&\n'> <'\t>file2 &&\n'> <'\tgit add file1 file2 &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -m "Initial commit" &&\n'> <'\tgit branch diff-in-message &&\n'> <'\n'> <'\tgit checkout -b multi-line-subject &&\n'> <'\tcat F >file2 &&\n'> <'\tgit add file2 &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -F F &&\n'> <'\n'> <'\tgit cat-file commit HEAD | sed -e "1,/^\\$/d" >F0 &&\n'> <'\n'> <'\tgit checkout diff-in-message &&\n'> <'\techo "commit log message containing a diff" >G &&\n'> <'\techo "" >>G &&\n'> <'\tcat G >file2 &&\n'> <'\tgit add file2 &&\n'> <'\tgit diff --cached >>G &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -F G &&\n'> <'\n'> <'\tgit cat-file commit HEAD | sed -e "1,/^\\$/d" >G0 &&\n'> <'\n'> <'\tgit checkout master &&\n'> <'\n'> <'\techo One >file1 &&\n'> <'\ttest_tick &&\n'> <'\tgit add file1 &&\n'> <'\tgit commit -m "Second commit"\n'> ) } ) (C {<test_expect_success>} {(SQ <'rebase commit with multi-line subject'>)} { (SQ <'\n'> <'\n'> <'\tgit rebase master multi-line-subject &&\n'> <'\tgit cat-file commit HEAD | sed -e "1,/^\\$/d" >F1 &&\n'> <'\n'> <'\ttest_cmp F0 F1 &&\n'> <'\ttest_cmp F F0\n'> ) } ) (C {<test_expect_success>} {(SQ <'rebase commit with diff in message'>)} { (SQ <'\n'> <'\tgit rebase master diff-in-message &&\n'> <'\tgit cat-file commit HEAD | sed -e "1,/^$/d" >G1 &&\n'> <'\ttest_cmp G0 G1 &&\n'> <'\ttest_cmp G G0\n'> ) } ) (C {<test_done>}) ] )