(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:test_description)
          op: Equal
          rhs: {(SQ <"More rename detection\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 <"cat \"$TEST_DIRECTORY\"/diff-lib/COPYING >COPYING &&\n"> 
          <"     echo frotz >rezrov &&\n"> <"    git update-index --add COPYING rezrov &&\n"> <"    tree=$(git write-tree) &&\n"> 
          <"    echo $tree">
        )
      }
    )
    (C {(test_expect_success)} {(SQ <"prepare work tree">)} 
      {(SQ <"sed -e ">) (s/HOWEVER/However/) (SQ <" <COPYING >COPYING.1 &&\n"> <"    sed -e ">) 
        (s/GPL/G.P.L/g) 
        (SQ <" <COPYING >COPYING.2 &&\n"> <"    rm -f COPYING &&\n"> 
          <"    git update-index --add --remove COPYING COPYING.?">
        )
      }
    )
    (SimpleCommand
      words: [{(git)} {(diff-index)} {(-C)} {(-p)} {($ VSub_Name "$tree")}]
      redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(current)} spids:[108])]
      more_env: [(env_pair name:GIT_DIFF_OPTS val:{(--unified) (Lit_Other "=") (0)} spids:[93])]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[113])
        (HereDoc
          op_id: Redir_DLess
          fd: -1
          body: 
            {("diff --git a/COPYING b/COPYING.1\n") ("copy from COPYING\n") ("copy to COPYING.1\n") 
              ("--- a/COPYING\n") ("+++ b/COPYING.1\n") ("@@ -6 +6 @@\n") 
              ("- HOWEVER, in order to allow a migration to GPLv3 if that seems like\n") ("+ However, in order to allow a migration to GPLv3 if that seems like\n") 
              ("diff --git a/COPYING b/COPYING.2\n") ("rename from COPYING\n") ("rename to COPYING.2\n") ("--- a/COPYING\n") ("+++ b/COPYING.2\n") 
              ("@@ -2 +2 @@\n") ("- Note that the only valid version of the GPL as far as this project\n") 
              ("+ Note that the only valid version of the G.P.L as far as this project\n") ("@@ -6 +6 @@\n") ("- HOWEVER, in order to allow a migration to GPLv3 if that seems like\n") 
              ("+ HOWEVER, in order to allow a migration to G.P.Lv3 if that seems like\n") ("@@ -12 +12 @@\n") ("-\tThis file is licensed under the GPL v2, or a later version\n") 
              ("+\tThis file is licensed under the G.P.L v2, or a later version\n")
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [116]
        )
      ]
    )
    (C {(test_expect_success)} {(SQ <"validate output from rename/copy detection (#1)">)} 
      {(SQ <"compare_diff_patch current expected">)}
    )
    (C {(test_expect_success)} {(SQ <"prepare work tree again">)} 
      {
        (SQ <"mv COPYING.2 COPYING &&\n"> 
          <"     git update-index --add --remove COPYING COPYING.1 COPYING.2">
        )
      }
    )
    (SimpleCommand
      words: [{(git)} {(diff-index)} {(-C)} {(-p)} {($ VSub_Name "$tree")}]
      redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(current)} spids:[180])]
      more_env: [(env_pair name:GIT_DIFF_OPTS val:{(--unified) (Lit_Other "=") (0)} spids:[165])]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[185])
        (HereDoc
          op_id: Redir_DLess
          fd: -1
          body: 
            {("diff --git a/COPYING b/COPYING\n") ("--- a/COPYING\n") ("+++ b/COPYING\n") 
              ("@@ -2 +2 @@\n") ("- Note that the only valid version of the GPL as far as this project\n") 
              ("+ Note that the only valid version of the G.P.L as far as this project\n") ("@@ -6 +6 @@\n") ("- HOWEVER, in order to allow a migration to GPLv3 if that seems like\n") 
              ("+ HOWEVER, in order to allow a migration to G.P.Lv3 if that seems like\n") ("@@ -12 +12 @@\n") ("-\tThis file is licensed under the GPL v2, or a later version\n") 
              ("+\tThis file is licensed under the G.P.L v2, or a later version\n") ("diff --git a/COPYING b/COPYING.1\n") ("copy from COPYING\n") ("copy to COPYING.1\n") 
              ("--- a/COPYING\n") ("+++ b/COPYING.1\n") ("@@ -6 +6 @@\n") 
              ("- HOWEVER, in order to allow a migration to GPLv3 if that seems like\n") ("+ However, in order to allow a migration to GPLv3 if that seems like\n")
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [188]
        )
      ]
    )
    (C {(test_expect_success)} {(SQ <"validate output from rename/copy detection (#2)">)} 
      {(SQ <"compare_diff_patch current expected">)}
    )
    (C {(test_expect_success)} {(SQ <"prepare work tree once again">)} 
      {
        (SQ <"cat \"$TEST_DIRECTORY\"/diff-lib/COPYING >COPYING &&\n"> 
          <"     git update-index --add --remove COPYING COPYING.1">
        )
      }
    )
    (SimpleCommand
      words: [{(git)} {(diff-index)} {(-C)} {(--find-copies-harder)} {(-p)} {($ VSub_Name "$tree")}]
      redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(current)} spids:[259])]
      more_env: [(env_pair name:GIT_DIFF_OPTS val:{(--unified) (Lit_Other "=") (0)} spids:[240])]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[264])
        (HereDoc
          op_id: Redir_DLess
          fd: -1
          body: 
            {("diff --git a/COPYING b/COPYING.1\n") ("copy from COPYING\n") ("copy to COPYING.1\n") 
              ("--- a/COPYING\n") ("+++ b/COPYING.1\n") ("@@ -6 +6 @@\n") 
              ("- HOWEVER, in order to allow a migration to GPLv3 if that seems like\n") ("+ However, in order to allow a migration to GPLv3 if that seems like\n")
            }
          do_expansion: False
          here_end: EOF
          was_filled: True
          spids: [267]
        )
      ]
    )
    (C {(test_expect_success)} {(SQ <"validate output from rename/copy detection (#3)">)} 
      {(SQ <"compare_diff_patch current expected">)}
    )
    (C {(test_done)})
  ]
)