(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'Rename interaction with pathspec.\n'> <'\n'>)}
          spids: [13]
        )
      ]
    )
    (C {<.>} {<'./test-lib.sh'>})
    (command.Sentence
      child: (C {<.>} {(DQ ($ Id.VSub_DollarName '$TEST_DIRECTORY')) <'/diff-lib.sh'>})
      terminator: <Id.Op_Semi _>
    )
    (C {<test_expect_success>} {(SQ <'prepare reference tree'>)} 
      {
        (SQ <'\n'> <'\tmkdir path0 path1 &&\n'> 
          <'\tcp "$TEST_DIRECTORY"/diff-lib/COPYING path0/COPYING &&\n'> <'\tgit update-index --add path0/COPYING &&\n'> <'\ttree=$(git write-tree) &&\n'> <'\techo $tree\n'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'prepare work tree'>)} 
      {
        (SQ <'\n'> <'\tcp path0/COPYING path1/COPYING &&\n'> 
          <'\tgit update-index --add --remove path0/COPYING path1/COPYING\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'>) <OF>}
              here_end_span_id: 84
              stdin_parts: [
                <
':100644 100644 6ff87c4664981e4397625791c8ea3bbb5f2279a3 6ff87c4664981e4397625791c8ea3bbb5f2279a3 C100\tpath0/COPYING\tpath1/COPYING\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'copy detection'>)} 
      {
        (SQ <'\n'> <'\tgit diff-index -C --find-copies-harder $tree >current &&\n'> 
          <'\tcompare_diff_raw current expected\n'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'copy detection, cached'>)} 
      {
        (SQ <'\n'> <'\tgit diff-index -C --find-copies-harder --cached $tree >current &&\n'> 
          <'\tcompare_diff_raw current expected\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'>) <OF>}
              here_end_span_id: 138
              stdin_parts: [
                <
':000000 100644 0000000000000000000000000000000000000000 6ff87c4664981e4397625791c8ea3bbb5f2279a3 A\tpath1/COPYING\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'copy, limited to a subtree'>)} 
      {
        (SQ <'\n'> <'\tgit diff-index -C --find-copies-harder $tree path1 >current &&\n'> 
          <'\tcompare_diff_raw current expected\n'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'tweak work tree'>)} 
      {(SQ <'\n'> <'\trm -f path0/COPYING &&\n'> <'\tgit update-index --remove path0/COPYING\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'>) <OF>}
              here_end_span_id: 188
              stdin_parts: [
                <
':100644 100644 6ff87c4664981e4397625791c8ea3bbb5f2279a3 6ff87c4664981e4397625791c8ea3bbb5f2279a3 R100\tpath0/COPYING\tpath1/COPYING\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'rename detection'>)} 
      {
        (SQ <'\n'> <'\tgit diff-index -C --find-copies-harder $tree >current &&\n'> 
          <'\tcompare_diff_raw current expected\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'>) <OF>}
              here_end_span_id: 226
              stdin_parts: [
                <
':000000 100644 0000000000000000000000000000000000000000 6ff87c4664981e4397625791c8ea3bbb5f2279a3 A\tpath1/COPYING\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (C {<test_expect_success>} {(SQ <'rename, limited to a subtree'>)} 
      {
        (SQ <'\n'> <'\tgit diff-index -C --find-copies-harder $tree path1 >current &&\n'> 
          <'\tcompare_diff_raw current expected\n'>
        )
      }
    )
    (C {<test_done>})
  ]
)