(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:test_description)
          op: Equal
          rhs: {(SQ <'Rename interaction with pathspec.\n'> <'\n'>)}
          spids: [13]
        )
      ]
      spids: [13]
    )
    (C {(.)} {(./test-lib.sh)})
    (Sentence
      child: (C {(.)} {(DQ ($ VSub_Name '$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'>
        )
      }
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:16777215 arg_word:{(expected)} spids:[76])
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (
':100644 100644 6ff87c4664981e4397625791c8ea3bbb5f2279a3 6ff87c4664981e4397625791c8ea3bbb5f2279a3 C100\tpath0/COPYING\tpath1/COPYING\n'
              )
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [79]
        )
      ]
    )
    (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'>
        )
      }
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:16777215 arg_word:{(expected)} spids:[128])
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (
':000000 100644 0000000000000000000000000000000000000000 6ff87c4664981e4397625791c8ea3bbb5f2279a3 A\tpath1/COPYING\n'
              )
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [131]
        )
      ]
    )
    (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'>)}
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:16777215 arg_word:{(expected)} spids:[176])
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (
':100644 100644 6ff87c4664981e4397625791c8ea3bbb5f2279a3 6ff87c4664981e4397625791c8ea3bbb5f2279a3 R100\tpath0/COPYING\tpath1/COPYING\n'
              )
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [179]
        )
      ]
    )
    (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'>
        )
      }
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:16777215 arg_word:{(expected)} spids:[212])
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (
':000000 100644 0000000000000000000000000000000000000000 6ff87c4664981e4397625791c8ea3bbb5f2279a3 A\tpath1/COPYING\n'
              )
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [215]
        )
      ]
    )
    (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)})
  ]
)