(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: {(SQ <'blame output in various formats on a simple case'>)} spids: [4] ) ] ) (C {<.>} {<'./test-lib.sh'>}) (C {<test_expect_success>} {(SQ <setup>)} { (SQ <'\n'> <'\techo a >file &&\n'> <'\tgit add file &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -m one &&\n'> <'\techo b >>file &&\n'> <'\techo c >>file &&\n'> <'\techo d >>file &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -a -m two\n'> ) } ) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expect>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.MultiLine here_begin: {(SQ <EOF>)} here_end_span_id: 48 stdin_parts: [ <'^baf5e0b (A U Thor 2005-04-07 15:13:13 -0700 1) a\n'> <'8825379d (A U Thor 2005-04-07 15:14:13 -0700 2) b\n'> <'8825379d (A U Thor 2005-04-07 15:14:13 -0700 3) c\n'> <'8825379d (A U Thor 2005-04-07 15:14:13 -0700 4) d\n'> ] ) ) ] do_fork: T ) (C {<test_expect_success>} {(SQ <'normal blame output'>)} {(SQ <'\n'> <'\tgit blame file >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:ID1) op: assign_op.Equal rhs: {<baf5e0b3869e0b2b2beb395a3720c7b51eac94fc>} spids: [62] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMMIT1) op: assign_op.Equal rhs: { (SQ <'author A U Thor\n'> <'author-mail <author@example.com>\n'> <'author-time 1112911993\n'> <'author-tz -0700\n'> <'committer C O Mitter\n'> <'committer-mail <committer@example.com>\n'> <'committer-time 1112911993\n'> <'committer-tz -0700\n'> <'summary one\n'> <'boundary\n'> <'filename file'> ) } spids: [65] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:ID2) op: assign_op.Equal rhs: {<8825379dfb8a1267b58e8e5bcf69eec838f685ec>} spids: [80] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMMIT2) op: assign_op.Equal rhs: { (SQ <'author A U Thor\n'> <'author-mail <author@example.com>\n'> <'author-time 1112912053\n'> <'author-tz -0700\n'> <'committer C O Mitter\n'> <'committer-mail <committer@example.com>\n'> <'committer-time 1112912053\n'> <'committer-tz -0700\n'> <'summary two\n'> <'previous baf5e0b3869e0b2b2beb395a3720c7b51eac94fc file\n'> <'filename file'> ) } spids: [83] ) ] ) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expect>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.MultiLine here_begin: {<EOF>} here_end_span_id: 124 stdin_parts: [ ($ Id.VSub_DollarName '$ID1') <' 1 1 1\n'> ($ Id.VSub_DollarName '$COMMIT1') <'\n'> <'\ta\n'> ($ Id.VSub_DollarName '$ID2') <' 2 2 3\n'> ($ Id.VSub_DollarName '$COMMIT2') <'\n'> <'\tb\n'> ($ Id.VSub_DollarName '$ID2') <' 3 3\n'> <'\tc\n'> ($ Id.VSub_DollarName '$ID2') <' 4 4\n'> <'\td\n'> ] ) ) ] do_fork: T ) (C {<test_expect_success>} {(SQ <'blame --porcelain output'>)} {(SQ <'\n'> <'\tgit blame --porcelain file >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expect>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.MultiLine here_begin: {<EOF>} here_end_span_id: 167 stdin_parts: [ ($ Id.VSub_DollarName '$ID1') <' 1 1 1\n'> ($ Id.VSub_DollarName '$COMMIT1') <'\n'> <'\ta\n'> ($ Id.VSub_DollarName '$ID2') <' 2 2 3\n'> ($ Id.VSub_DollarName '$COMMIT2') <'\n'> <'\tb\n'> ($ Id.VSub_DollarName '$ID2') <' 3 3\n'> ($ Id.VSub_DollarName '$COMMIT2') <'\n'> <'\tc\n'> ($ Id.VSub_DollarName '$ID2') <' 4 4\n'> ($ Id.VSub_DollarName '$COMMIT2') <'\n'> <'\td\n'> ] ) ) ] do_fork: T ) (C {<test_expect_success>} {(SQ <'blame --line-porcelain output'>)} {(SQ <'\n'> <'\tgit blame --line-porcelain file >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (C {<test_expect_success>} {(SQ <'--porcelain detects first non-blank line as subject'>)} { (SQ <'\n'> <'\t(\n'> <'\t\tGIT_INDEX_FILE=.git/tmp-index &&\n'> <'\t\texport GIT_INDEX_FILE &&\n'> <'\t\techo "This is it" >single-file &&\n'> <'\t\tgit add single-file &&\n'> <'\t\ttree=$(git write-tree) &&\n'> <'\t\tcommit=$(printf "%s\\n%s\\n%s\\n\\n\\n \\noneline\\n\\nbody\\n" \\\n'> <'\t\t\t"tree $tree" \\\n'> <'\t\t\t"author A <a@b.c> 123456789 +0000" \\\n'> <'\t\t\t"committer C <c@d.e> 123456789 +0000" |\n'> <'\t\tgit hash-object -w -t commit --stdin) &&\n'> <'\t\tgit blame --porcelain $commit -- single-file >output &&\n'> <'\t\tgrep "^summary oneline$" output\n'> <'\t)\n'> ) } ) (C {<test_done>}) ] )