(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:test_description spids:[12])
          op: Equal
          rhs: {(SQ <'ls-files --exclude does not affect index files'>)}
          spids: [12]
        )
      ]
      spids: [12]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(test_expect_success)} {(SQ <'create repo with file'>)} 
      {
        (SQ <'\n'> <'\techo content >file &&\n'> <'\tgit add file &&\n'> <'\tgit commit -m file &&\n'> 
          <'\techo modification >file\n'>
        )
      }
    )
    (command.FuncDef
      name: check_output
      body: 
        (command.BraceGroup
          children: [
            (C {(test_expect_success)} 
              {(DQ ('ls-files output contains file (') ($ VSub_Number '$1') (')'))} 
              {
                (DQ ('\n') ("\techo '") ($ VSub_Number '$2') ("' >expect &&\n") 
                  ('\tgit ls-files --exclude-standard --') ($ VSub_Number '$1') (' >output &&\n') ('\ttest_cmp expect output\n')
                )
              }
            )
          ]
          spids: [41]
        )
      spids: [37 40]
    )
    (command.FuncDef
      name: check_all_output
      body: 
        (command.BraceGroup
          children: [
            (C {(check_output)} {(SQ <cached>)} {(SQ <file>)})
            (C {(check_output)} {(SQ <modified>)} {(SQ <file>)})
          ]
          spids: [69]
        )
      spids: [65 68]
    )
    (C {(check_all_output)})
    (C {(test_expect_success)} {(SQ <'add file to gitignore'>)} 
      {(SQ <'\n'> <'\techo file >.gitignore\n'>)}
    )
    (C {(check_all_output)})
    (C {(test_expect_success)} {(SQ <'ls-files -i lists only tracked-but-ignored files'>)} 
      {
        (SQ <'\n'> <'\techo content >other-file &&\n'> <'\tgit add other-file &&\n'> 
          <'\techo file >expect &&\n'> <'\tgit ls-files -i --exclude-standard >output &&\n'> <'\ttest_cmp expect output\n'>
        )
      }
    )
    (C {(test_done)})
  ]
)