(command.CommandList
  children: [
    (command.ShAssignment
      left: <Id.Lit_VarLike 'test_description='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'test_description='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'update-index with options'>)}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<'./test-lib.sh'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {<basics>}
        {
          (SQ <'\n'> <'\t>one &&\n'> <'\t>two &&\n'> <'\t>three &&\n'> <'\n'> 
            <'\t# need --add when adding\n'> <'\ttest_must_fail git update-index one &&\n'> <'\ttest -z "$(git ls-files)" &&\n'> 
            <'\tgit update-index --add one &&\n'> <'\ttest zone = "z$(git ls-files)" &&\n'> <'\n'> <'\t# update-index is atomic\n'> <'\techo 1 >one &&\n'> 
            <'\ttest_must_fail git update-index one two &&\n'> <'\techo "M\tone" >expect &&\n'> <'\tgit diff-files --name-status >actual &&\n'> 
            <'\ttest_cmp expect actual &&\n'> <'\n'> <'\tgit update-index --add one two three &&\n'> 
            <'\tfor i in one three two; do echo $i; done >expect &&\n'> <'\tgit ls-files >actual &&\n'> <'\ttest_cmp expect actual &&\n'> <'\n'> <'\ttest_tick &&\n'> <'\t(\n'> 
            <'\t\ttest_create_repo xyzzy &&\n'> <'\t\tcd xyzzy &&\n'> <'\t\t>file &&\n'> <'\t\tgit add file\n'> <'\t\tgit commit -m "sub initial"\n'> 
            <'\t) &&\n'> <'\tgit add xyzzy &&\n'> <'\n'> <'\ttest_tick &&\n'> <'\tgit commit -m initial &&\n'> 
            <'\tgit tag initial\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'--ignore-missing --refresh'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard initial &&\n'> <'\techo 2 >one &&\n'> 
            <'\ttest_must_fail git update-index --refresh &&\n'> <'\techo 1 >one &&\n'> <'\tgit update-index --refresh &&\n'> <'\trm -f two &&\n'> 
            <'\ttest_must_fail git update-index --refresh &&\n'> <'\tgit update-index --ignore-missing --refresh\n'> <'\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'--unmerged --refresh'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard initial &&\n'> 
            <'\tinfo=$(git ls-files -s one | sed -e "s/ 0\t/ 1\t/") &&\n'> <'\tgit rm --cached one &&\n'> <'\techo "$info" | git update-index --index-info &&\n'> 
            <'\ttest_must_fail git update-index --refresh &&\n'> <'\tgit update-index --unmerged --refresh &&\n'> <'\techo 2 >two &&\n'> 
            <'\ttest_must_fail git update-index --unmerged --refresh >actual &&\n'> <'\tgrep two actual &&\n'> <'\t! grep one actual &&\n'> <'\t! grep three actual\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'--ignore-submodules --refresh (1)'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard initial &&\n'> <'\trm -f two &&\n'> 
            <'\ttest_must_fail git update-index --ignore-submodules --refresh\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'--ignore-submodules --refresh (2)'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard initial &&\n'> <'\ttest_tick &&\n'> <'\t(\n'> 
            <'\t\tcd xyzzy &&\n'> <'\t\tgit commit -m "sub second" --allow-empty\n'> <'\t) &&\n'> 
            <'\ttest_must_fail git update-index --refresh &&\n'> <'\ttest_must_fail git update-index --ignore-missing --refresh &&\n'> 
            <'\tgit update-index --ignore-submodules --refresh\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_done>
      more_env: []
      words: [{<test_done>}]
      redirects: []
      do_fork: T
    )
  ]
)