(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:test_description)
          op: Equal
          rhs: {(SQ <'git apply handling submodules'>)}
          spids: [4]
        )
      ]
      spids: [4]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(.)} {(DQ ($ VSub_Name '$TEST_DIRECTORY')) (/lib-submodule-update.sh)})
    (FuncDef
      name: apply_index
      body: 
        (BraceGroup
          children: [
            (Pipeline
              children: [
                (C {(git)} {(diff)} {(--ignore-submodules) (Lit_Other '=') (dirty)} 
                  {(DQ (..) ($ VSub_Number '$1'))}
                )
                (C {(git)} {(apply)} {(--index)} {(-)})
              ]
              negated: False
            )
          ]
          spids: [27]
        )
      spids: [22 26]
    )
    (C {(test_submodule_switch)} {(DQ (apply_index))})
    (FuncDef
      name: apply_3way
      body: 
        (BraceGroup
          children: [
            (Pipeline
              children: [
                (C {(git)} {(diff)} {(--ignore-submodules) (Lit_Other '=') (dirty)} 
                  {(DQ (..) ($ VSub_Number '$1'))}
                )
                (C {(git)} {(apply)} {(--3way)} {(-)})
              ]
              negated: False
            )
          ]
          spids: [68]
        )
      spids: [63 67]
    )
    (C {(test_submodule_switch)} {(DQ (apply_3way))})
    (C {(test_done)})
  ]
)