(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 <'Move a binary file'>)} spids: [13] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (C {<test_expect_success>} {(SQ <'prepare repository'>)} { (SQ <'\n'> <'\tgit init &&\n'> <'\techo foo > foo &&\n'> <'\techo "barQ" | q_to_nul > bar &&\n'> <'\tgit add . &&\n'> <'\tgit commit -m "Initial commit"\n'> ) } ) (C {<test_expect_success>} {(SQ <'move the files into a "sub" directory'>)} { (SQ <'\n'> <'\tmkdir sub &&\n'> <'\tgit mv bar foo sub/ &&\n'> <'\tgit commit -m "Moved to sub/"\n'> ) } ) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expected>}) (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: 76 stdin_parts: [ <'-\t-\tbar => sub/bar\n'> <'0\t0\tfoo => sub/foo\n'> <'\n'> <'diff --git a/bar b/sub/bar\n'> <'similarity index 100%\n'> <'rename from bar\n'> <'rename to sub/bar\n'> <'diff --git a/foo b/sub/foo\n'> <'similarity index 100%\n'> <'rename from foo\n'> <'rename to sub/foo\n'> ] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'git show -C -C report renames'>)} { (SQ <'\n'> <'\tgit show -C -C --raw --binary --numstat >patch-with-stat &&\n'> <'\ttail -n 11 patch-with-stat >current &&\n'> <'\ttest_cmp expected current\n'> ) } ) (C {<test_done>}) ] )