(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 <'merge: handle file mode'>)}
        )
      ]
      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>}
        {(SQ <'set up mode change in one branch'>)}
        {
          (SQ <'\n'> <'\t: >file1 &&\n'> <'\tgit add file1 &&\n'> <'\tgit commit -m initial &&\n'> 
            <'\tgit checkout -b a1 master &&\n'> <'\t: >dummy &&\n'> <'\tgit add dummy &&\n'> <'\tgit commit -m a &&\n'> 
            <'\tgit checkout -b b1 master &&\n'> <'\ttest_chmod +x file1 &&\n'> <'\tgit add file1 &&\n'> <'\tgit commit -m b1\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <do_one_mode>
      name: do_one_mode
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'strategy='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'strategy='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 1)}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'us='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'us='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'us='> name:us)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 2)}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'them='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'them='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'them='> name:them)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 3)}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {
                  (DQ <'resolve single mode change ('> ($ Id.VSub_DollarName strategy) <', '> 
                    ($ Id.VSub_DollarName us) <')'>
                  )
                }
                {
                  (SQ <'\n'> <'\t\tgit checkout -f $us &&\n'> <'\t\tgit merge -s $strategy $them &&\n'> 
                    <'\t\tgit ls-files -s file1 | grep ^100755\n'> <'\t'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {<FILEMODE>}
                {
                  (DQ <'verify executable bit on file ('> ($ Id.VSub_DollarName strategy) <', '> 
                    ($ Id.VSub_DollarName us) <')'>
                  )
                }
                {(SQ <'\n'> <'\t\ttest -x file1\n'> <'\t'>)}
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.Simple
      blame_tok: <do_one_mode>
      more_env: []
      words: [{<do_one_mode>} {<recursive>} {<a1>} {<b1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_one_mode>
      more_env: []
      words: [{<do_one_mode>} {<recursive>} {<b1>} {<a1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_one_mode>
      more_env: []
      words: [{<do_one_mode>} {<resolve>} {<a1>} {<b1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_one_mode>
      more_env: []
      words: [{<do_one_mode>} {<resolve>} {<b1>} {<a1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'set up mode change in both branches'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard HEAD &&\n'> <'\tgit checkout -b a2 master &&\n'> 
            <'\t: >file2 &&\n'> <'\tH=$(git hash-object file2) &&\n'> <'\ttest_chmod +x file2 &&\n'> <'\tgit commit -m a2 &&\n'> 
            <'\tgit checkout -b b2 master &&\n'> <'\t: >file2 &&\n'> <'\tgit add file2 &&\n'> <'\tgit commit -m b2 &&\n'> <'\t{\n'> 
            <'\t\techo "100755 $H 2\tfile2"\n'> <'\t\techo "100644 $H 3\tfile2"\n'> <'\t} >expect\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <do_both_modes>
      name: do_both_modes
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'strategy='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'strategy='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 1)}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {
                  (DQ <'detect conflict on double mode change ('> ($ Id.VSub_DollarName strategy) <')'>)
                }
                {
                  (SQ <'\n'> <'\t\tgit reset --hard &&\n'> <'\t\tgit checkout -f a2 &&\n'> 
                    <'\t\ttest_must_fail git merge -s $strategy b2 &&\n'> <'\t\tgit ls-files -u >actual &&\n'> <'\t\ttest_cmp actual expect &&\n'> 
                    <'\t\tgit ls-files -s file2 | grep ^100755\n'> <'\t'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {<FILEMODE>}
                {(DQ <'verify executable bit on file ('> ($ Id.VSub_DollarName strategy) <')'>)}
                {(SQ <'\n'> <'\t\ttest -x file2\n'> <'\t'>)}
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.Simple
      blame_tok: <do_both_modes>
      more_env: []
      words: [{<do_both_modes>} {<recursive>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_both_modes>
      more_env: []
      words: [{<do_both_modes>} {<resolve>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'set up delete/modechange scenario'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard &&\n'> <'\tgit checkout -b deletion master &&\n'> 
            <'\tgit rm file1 &&\n'> <'\tgit commit -m deletion\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <do_delete_modechange>
      name: do_delete_modechange
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'strategy='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'strategy='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 1)}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'us='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'us='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'us='> name:us)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 2)}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'them='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'them='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'them='> name:them)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 3)}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {
                  (DQ <'detect delete/modechange conflict ('> ($ Id.VSub_DollarName strategy) <', '> 
                    ($ Id.VSub_DollarName us) <')'>
                  )
                }
                {
                  (SQ <'\n'> <'\t\tgit reset --hard &&\n'> <'\t\tgit checkout $us &&\n'> 
                    <'\t\ttest_must_fail git merge -s $strategy $them\n'> <'\t'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.Simple
      blame_tok: <do_delete_modechange>
      more_env: []
      words: [{<do_delete_modechange>} {<recursive>} {<b1>} {<deletion>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_delete_modechange>
      more_env: []
      words: [{<do_delete_modechange>} {<recursive>} {<deletion>} {<b1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_delete_modechange>
      more_env: []
      words: [{<do_delete_modechange>} {<resolve>} {<b1>} {<deletion>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <do_delete_modechange>
      more_env: []
      words: [{<do_delete_modechange>} {<resolve>} {<deletion>} {<b1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_done>
      more_env: []
      words: [{<test_done>}]
      redirects: []
      do_fork: T
    )
  ]
)