(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:test_description)
          op: Equal
          rhs: {(SQ <'Rename interaction with pathspec.\n'> <'\n'>)}
        )
      ]
    )
    (C {(.)} {(./test-lib.sh)})
    (command.Sentence
      child: (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY')) (/diff-lib.sh)})
      terminator: <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.SimpleCommand
      words: [{(cat)}]
      redirects: [
        (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)})
        (redir.HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\E'>) (OF)}
          here_end_span_id: 84
          stdin_parts: [
            (
':100644 100644 6ff87c4664981e4397625791c8ea3bbb5f2279a3 6ff87c4664981e4397625791c8ea3bbb5f2279a3 C100\tpath0/COPYING\tpath1/COPYING\n'
            )
          ]
        )
      ]
    )
    (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.SimpleCommand
      words: [{(cat)}]
      redirects: [
        (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)})
        (redir.HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\E'>) (OF)}
          here_end_span_id: 138
          stdin_parts: [
            (
':000000 100644 0000000000000000000000000000000000000000 6ff87c4664981e4397625791c8ea3bbb5f2279a3 A\tpath1/COPYING\n'
            )
          ]
        )
      ]
    )
    (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.SimpleCommand
      words: [{(cat)}]
      redirects: [
        (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)})
        (redir.HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\E'>) (OF)}
          here_end_span_id: 188
          stdin_parts: [
            (
':100644 100644 6ff87c4664981e4397625791c8ea3bbb5f2279a3 6ff87c4664981e4397625791c8ea3bbb5f2279a3 R100\tpath0/COPYING\tpath1/COPYING\n'
            )
          ]
        )
      ]
    )
    (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.SimpleCommand
      words: [{(cat)}]
      redirects: [
        (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)})
        (redir.HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\E'>) (OF)}
          here_end_span_id: 226
          stdin_parts: [
            (
':000000 100644 0000000000000000000000000000000000000000 6ff87c4664981e4397625791c8ea3bbb5f2279a3 A\tpath1/COPYING\n'
            )
          ]
        )
      ]
    )
    (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)})
  ]
)