(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'Test --follow should always find copies hard in git log.\n'> <'\n'>)}
          spids: [13]
        )
      ]
    )
    (C {<.>} {<'./test-lib.sh'>})
    (C {<.>} {(DQ ($ Id.VSub_DollarName '$TEST_DIRECTORY')) <'/diff-lib.sh'>})
    (command.Simple
      words: [{<echo>} {(SQ <'Line 1\n'> <'Line 2\n'> <'Line 3\n'>)}]
      redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<path0>})]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'add a file path0 and commit.'>)} 
      {(SQ <'git add path0 &&\n'> <'     git commit -m "Add path0"'>)}
    )
    (command.Simple
      words: [{<echo>} {(SQ <'New line 1\n'> <'New line 2\n'> <'New line 3\n'>)}]
      redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<path0>})]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'Change path0.'>)} 
      {(SQ <'git add path0 &&\n'> <'     git commit -m "Change path0"'>)}
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Less '<'> loc:(redir_loc.Fd fd:0) arg:{<path0>})
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<path1>})
      ]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'copy path0 to path1.'>)} 
      {(SQ <'git add path1 &&\n'> <'     git commit -m "Copy path1 from path0"'>)}
    )
    (C {<test_expect_success>} {(SQ <'find the copy path0 -> path1 harder'>)} 
      {(SQ <'git log --follow --name-status --pretty="format:%s"  path1 > current'>)}
    )
    (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'>) <OF>}
              here_end_span_id: 142
              stdin_parts: [
                <'Copy path1 from path0\n'>
                <'C100\tpath0\tpath1\n'>
                <'\n'>
                <'Change path0\n'>
                <'M\tpath0\n'>
                <'\n'>
                <'Add path0\n'>
                <'A\tpath0\n'>
              ]
            )
        )
      ]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'validate the output.'>)} 
      {(SQ <'compare_diff_patch current expected'>)}
    )
    (C {<test_done>})
  ]
)