(command.CommandList
  children: [
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <test>
                      more_env: []
                      words: [
                        {<test>}
                        {(DQ ($ Id.VSub_Number 1))}
                        {<Id.Lit_Equals '='>}
                        {(DQ <'testgit::'> ($ Id.VSub_Number 2))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'alias='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'alias='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'alias='> name:alias)
                  op: assign_op.Equal
                  rhs: {<Id.Lit_Underscore _>}
                )
              ]
              redirects: []
            )
          ]
          spids: [13 29]
        )
      ]
      else_kw: <Id.KW_Else else>
      else_action: [
        (command.ShAssignment
          left: <Id.Lit_VarLike 'alias='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'alias='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'alias='> name:alias)
              op: assign_op.Equal
              rhs: {($ Id.VSub_Number 1)}
            )
          ]
          redirects: []
        )
      ]
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'url='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'url='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'url='> name:url)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number 2)}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'dir='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'dir='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dir='> name:dir)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName GIT_DIR) <'/testgit/'> ($ Id.VSub_DollarName alias))}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'prefix='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'prefix='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prefix='> name:prefix)
          op: assign_op.Equal
          rhs: {(DQ <'refs/testgit/'> ($ Id.VSub_DollarName alias))}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'default_refspec='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'default_refspec='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'default_refspec='> name:default_refspec)
          op: assign_op.Equal
          rhs: {(DQ <'refs/heads/*:'> (${ Id.VSub_Name prefix) <'/heads/*'>)}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'refspec='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'refspec='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'refspec='> name:refspec)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (BracedVarSub
                  left: <Id.Left_DollarBrace '${'>
                  token: <Id.VSub_Name GIT_REMOTE_TESTGIT_REFSPEC>
                  var_name: GIT_REMOTE_TESTGIT_REFSPEC
                  suffix_op: 
                    (suffix_op.Unary
                      op: <Id.VTest_Hyphen _>
                      arg_word: {($ Id.VSub_DollarName default_refspec)}
                    )
                  right: <Id.Right_DollarBrace '}'>
                )
              )
            }
        )
      ]
      redirects: []
    )
    (command.AndOr
      children: [
        (command.Simple
          blame_tok: <test>
          more_env: []
          words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName refspec))}]
          redirects: []
          do_fork: T
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'prefix='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'prefix='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prefix='> name:prefix)
              op: assign_op.Equal
              rhs: {(DQ <refs>)}
            )
          ]
          redirects: []
        )
      ]
      ops: [<Id.Op_DAmp _>]
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'GIT_DIR='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'GIT_DIR='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'GIT_DIR='> name:GIT_DIR)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName url) <'/.git'>)}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <export>
      more_env: []
      words: [{<export>} {<GIT_DIR>}]
      redirects: []
      do_fork: T
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'force='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'force='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'force='> name:force)
          op: assign_op.Equal
          rhs: (rhs_word__Empty)
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <mkdir>
      more_env: []
      words: [{<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName dir))}]
      redirects: []
      do_fork: T
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Simple
                  blame_tok: <test>
                  more_env: []
                  words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName GIT_REMOTE_TESTGIT_NO_MARKS))}]
                  redirects: []
                  do_fork: T
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'gitmarks='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'gitmarks='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'gitmarks='> name:gitmarks)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName dir) <'/git.marks'>)}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'testgitmarks='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'testgitmarks='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'testgitmarks='> name:testgitmarks)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName dir) <'/testgit.marks'>)}
                )
              ]
              redirects: []
            )
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <test>
                  more_env: []
                  words: [{<test>} {<-e>} {(DQ ($ Id.VSub_DollarName gitmarks))}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <Id.Redir_Great '>'>
                  more_env: []
                  words: []
                  redirects: [
                    (Redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName gitmarks))}
                    )
                  ]
                  do_fork: F
                )
              ]
              ops: [<Id.Op_DPipe _>]
            )
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <test>
                  more_env: []
                  words: [{<test>} {<-e>} {(DQ ($ Id.VSub_DollarName testgitmarks))}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <Id.Redir_Great '>'>
                  more_env: []
                  words: []
                  redirects: [
                    (Redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName testgitmarks))}
                    )
                  ]
                  do_fork: F
                )
              ]
              ops: [<Id.Op_DPipe _>]
            )
          ]
          spids: [120 130]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.Simple
              blame_tok: <read>
              more_env: []
              words: [{<read>} {<line>}]
              redirects: []
              do_fork: T
            )
          ]
        )
      body: 
        (command.DoGroup
          left: <Id.KW_Do do>
          children: [
            (command.Case
              case_kw: <Id.KW_Case case>
              to_match: (case_arg.Word w:{($ Id.VSub_DollarName line)})
              arms_start: <Id.KW_In in>
              arms: [
                (CaseArm
                  left: <capabilities>
                  pattern: (pat.Words words:[{<capabilities>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(SQ <import>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(SQ <export>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName refspec))}]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <echo>
                          more_env: []
                          words: [{<echo>} {(DQ <'refspec '> ($ Id.VSub_DollarName refspec))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DAmp _>]
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName gitmarks))}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [{<echo>} {(DQ <'*import-marks '> ($ Id.VSub_DollarName gitmarks))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [{<echo>} {(DQ <'*export-marks '> ($ Id.VSub_DollarName gitmarks))}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [233 244]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {<-n>}
                            {(DQ ($ Id.VSub_DollarName GIT_REMOTE_TESTGIT_SIGNED_TAGS))}
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <echo>
                          more_env: []
                          words: [{<echo>} {(DQ <signed-tags>)}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DAmp _>]
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {<-n>}
                            {(DQ ($ Id.VSub_DollarName GIT_REMOTE_TESTGIT_NO_PRIVATE_UPDATE))}
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <echo>
                          more_env: []
                          words: [{<echo>} {(DQ <no-private-update>)}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DAmp _>]
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(SQ <option>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <list>
                  pattern: (pat.Words words:[{<list>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <git>
                      more_env: []
                      words: [
                        {<git>}
                        {<for-each-ref>}
                        {<--format> <Id.Lit_Equals '='> (SQ <'? %(refname)'>)}
                        {(SQ <'refs/heads/'>)}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'head='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'head='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head='> name:head)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Simple
                                    blame_tok: <git>
                                    more_env: []
                                    words: [{<git>} {<symbolic-ref>} {<HEAD>}]
                                    redirects: []
                                    do_fork: T
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(DQ <'@'> ($ Id.VSub_DollarName head) <' HEAD'>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <Id.KW_Import import>
                  pattern: (pat.Words words:[{<Id.KW_Import import> <Id.Lit_Star '*'>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.WhileUntil
                      keyword: <Id.KW_While while>
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Simple
                              blame_tok: <true>
                              more_env: []
                              words: [{<true>}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                        )
                      body: 
                        (command.DoGroup
                          left: <Id.KW_Do do>
                          children: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'ref='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'ref='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ref='> name:ref)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (DQ 
                                        (BracedVarSub
                                          left: <Id.Left_DollarBrace '${'>
                                          token: <Id.VSub_Name line>
                                          var_name: line
                                          suffix_op: 
                                            (suffix_op.Unary
                                              op: <Id.VOp1_Pound '#'>
                                              arg_word: {<Id.Lit_Other '*'> <' '>}
                                            )
                                          right: <Id.Right_DollarBrace '}'>
                                        )
                                      )
                                    }
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'refs='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'refs='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'refs='> name:refs)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (DQ ($ Id.VSub_DollarName refs) <' '> ($ Id.VSub_DollarName ref))
                                    }
                                )
                              ]
                              redirects: []
                            )
                            (command.Simple
                              blame_tok: <read>
                              more_env: []
                              words: [{<read>} {<line>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.AndOr
                              children: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [
                                    {<test>}
                                    {
                                      (DQ 
                                        (BracedVarSub
                                          left: <Id.Left_DollarBrace '${'>
                                          token: <Id.VSub_Name line>
                                          var_name: line
                                          suffix_op: 
                                            (suffix_op.Unary
                                              op: <Id.VOp1_DPercent '%%'>
                                              arg_word: {<' '> <Id.Lit_Other '*'>}
                                            )
                                          right: <Id.Right_DollarBrace '}'>
                                        )
                                      )
                                    }
                                    {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                                    {(DQ <import>)}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.ControlFlow
                                  keyword: <Id.ControlFlow_Break break>
                                )
                              ]
                              ops: [<Id.Op_DAmp _>]
                            )
                          ]
                          right: <Id.KW_Done done>
                        )
                      redirects: []
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName gitmarks))}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [
                                {<echo>}
                                {(DQ <'feature import-marks='> ($ Id.VSub_DollarName gitmarks))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [
                                {<echo>}
                                {(DQ <'feature export-marks='> ($ Id.VSub_DollarName gitmarks))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [425 436]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [
                                    {<test>}
                                    {<-n>}
                                    {(DQ ($ Id.VSub_DollarName GIT_REMOTE_TESTGIT_FAILURE))}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [{<echo>} {(DQ <'feature done'>)}]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [459 470]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(DQ <'feature done'>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.Pipeline
                      children: [
                        (command.Simple
                          blame_tok: <git>
                          more_env: []
                          words: [
                            {<git>}
                            {<fast-export>}
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name testgitmarks>
                                var_name: testgitmarks
                                suffix_op: 
                                  (suffix_op.Unary
                                    op: <Id.VTest_ColonPlus _>
                                    arg_word: 
                                      {(DQ <'--import-marks='> ($ Id.VSub_DollarName testgitmarks))}
                                  )
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name testgitmarks>
                                var_name: testgitmarks
                                suffix_op: 
                                  (suffix_op.Unary
                                    op: <Id.VTest_ColonPlus _>
                                    arg_word: 
                                      {(DQ <'--export-marks='> ($ Id.VSub_DollarName testgitmarks))}
                                  )
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                            {($ Id.VSub_DollarName refs)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <sed>
                          more_env: []
                          words: [
                            {<sed>}
                            {<-e>}
                            {(DQ <'s#refs/heads/#'> (${ Id.VSub_Name prefix) <'/heads/#g'>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_Pipe _>]
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(DQ <done>)}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <export>
                  pattern: (pat.Words words:[{<export>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [
                                    {<test>}
                                    {<-n>}
                                    {(DQ ($ Id.VSub_DollarName GIT_REMOTE_TESTGIT_FAILURE))}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.WhileUntil
                              keyword: <Id.KW_While while>
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.Simple
                                          blame_tok: <read>
                                          more_env: []
                                          words: [{<read>} {<line>}]
                                          redirects: []
                                          do_fork: T
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              body: 
                                (command.DoGroup
                                  left: <Id.KW_Do do>
                                  children: [
                                    (command.AndOr
                                      children: [
                                        (command.Simple
                                          blame_tok: <test>
                                          more_env: []
                                          words: [
                                            {<test>}
                                            {(DQ <done>)}
                                            {<Id.Lit_Equals '='>}
                                            {(DQ ($ Id.VSub_DollarName line))}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                        (command.ControlFlow
                                          keyword: <Id.ControlFlow_Break break>
                                        )
                                      ]
                                      ops: [<Id.Op_DAmp _>]
                                    )
                                  ]
                                  right: <Id.KW_Done done>
                                )
                              redirects: []
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [556 567]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'before='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'before='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'before='> name:before)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Simple
                                    blame_tok: <git>
                                    more_env: []
                                    words: [
                                      {<git>}
                                      {<for-each-ref>}
                                      {<--format> <Id.Lit_Equals '='> 
                                        (SQ <' %(refname) %(objectname) '>)
                                      }
                                    ]
                                    redirects: []
                                    do_fork: T
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <git>
                      more_env: []
                      words: [
                        {<git>}
                        {<fast-import>}
                        {
                          (BracedVarSub
                            left: <Id.Left_DollarBrace '${'>
                            token: <Id.VSub_Name force>
                            var_name: force
                            suffix_op: (suffix_op.Unary op:<Id.VTest_ColonPlus _> arg_word:{<--force>})
                            right: <Id.Right_DollarBrace '}'>
                          )
                        }
                        {
                          (BracedVarSub
                            left: <Id.Left_DollarBrace '${'>
                            token: <Id.VSub_Name testgitmarks>
                            var_name: testgitmarks
                            suffix_op: 
                              (suffix_op.Unary
                                op: <Id.VTest_ColonPlus _>
                                arg_word: 
                                  {(DQ <'--import-marks='> ($ Id.VSub_DollarName testgitmarks))}
                              )
                            right: <Id.Right_DollarBrace '}'>
                          )
                        }
                        {
                          (BracedVarSub
                            left: <Id.Left_DollarBrace '${'>
                            token: <Id.VSub_Name testgitmarks>
                            var_name: testgitmarks
                            suffix_op: 
                              (suffix_op.Unary
                                op: <Id.VTest_ColonPlus _>
                                arg_word: 
                                  {(DQ <'--export-marks='> ($ Id.VSub_DollarName testgitmarks))}
                              )
                            right: <Id.Right_DollarBrace '}'>
                          )
                        }
                        {<--quiet>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Pipeline
                      children: [
                        (command.Simple
                          blame_tok: <git>
                          more_env: []
                          words: [
                            {<git>}
                            {<for-each-ref>}
                            {<--format> <Id.Lit_Equals '='> (SQ <'%(refname) %(objectname)'>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.WhileUntil
                          keyword: <Id.KW_While while>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <read>
                                  more_env: []
                                  words: [{<read>} {<ref>} {<a>}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          body: 
                            (command.DoGroup
                              left: <Id.KW_Do do>
                              children: [
                                (command.Case
                                  case_kw: <Id.KW_Case case>
                                  to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName before))})
                                  arms_start: <Id.KW_In in>
                                  arms: [
                                    (CaseArm
                                      left: <Id.Lit_Star '*'>
                                      pattern: 
                                        (pat.Words
                                          words: [
                                            {<Id.Lit_Star '*'> 
                                              (DQ <' '> ($ Id.VSub_DollarName ref) <' '> 
                                                ($ Id.VSub_DollarName a) <' '>
                                              ) <Id.Lit_Star '*'>
                                            }
                                          ]
                                        )
                                      middle: <Id.Right_CasePat _>
                                      action: [
                                        (command.ControlFlow
                                          keyword: <Id.ControlFlow_Continue continue>
                                        )
                                      ]
                                      right: <Id.Op_DSemi _>
                                    )
                                  ]
                                  arms_end: <Id.KW_Esac esac>
                                  redirects: []
                                )
                                (command.If
                                  if_kw: <Id.KW_If if>
                                  arms: [
                                    (IfArm
                                      keyword: <Id.KW_If if>
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (command.Simple
                                              blame_tok: <test>
                                              more_env: []
                                              words: [
                                                {<test>}
                                                {<-z>}
                                                {
                                                  (DQ 
                                                    ($ Id.VSub_DollarName 
GIT_REMOTE_TESTGIT_PUSH_ERROR
                                                    )
                                                  )
                                                }
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                        )
                                      then_kw: <Id.KW_Then then>
                                      action: [
                                        (command.Simple
                                          blame_tok: <echo>
                                          more_env: []
                                          words: [{<echo>} {(DQ <'ok '> ($ Id.VSub_DollarName ref))}]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                      spids: [741 752]
                                    )
                                  ]
                                  else_kw: <Id.KW_Else else>
                                  else_action: [
                                    (command.Simple
                                      blame_tok: <echo>
                                      more_env: []
                                      words: [
                                        {<echo>}
                                        {
                                          (DQ <'error '> ($ Id.VSub_DollarName ref) <' '> 
                                            ($ Id.VSub_DollarName GIT_REMOTE_TESTGIT_PUSH_ERROR)
                                          )
                                        }
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  fi_kw: <Id.KW_Fi fi>
                                  redirects: []
                                )
                              ]
                              right: <Id.KW_Done done>
                            )
                          redirects: []
                        )
                      ]
                      ops: [<Id.Op_Pipe _>]
                    )
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <option>
                  pattern: 
                    (pat.Words
                      words: [
                        {<option> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\ '> ch:' ') 
                          <Id.Lit_Star '*'>
                        }
                      ]
                    )
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <read>
                      more_env: []
                      words: [{<read>} {<cmd>} {<opt>} {<val>}]
                      redirects: [
                        (Redir
                          op: <Id.Redir_DLessDash '<<-'>
                          loc: (redir_loc.Fd fd:0)
                          arg: 
                            (redir_param.HereDoc
                              here_begin: {<EOF>}
                              here_end_tok: <Id.Undefined_Tok ''>
                              stdin_parts: [($ Id.VSub_DollarName line) <'\n'>]
                            )
                        )
                      ]
                      do_fork: T
                    )
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: (case_arg.Word w:{($ Id.VSub_DollarName opt)})
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <force>
                          pattern: (pat.Words words:[{<force>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.AndOr
                              children: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [
                                    {<test>}
                                    {($ Id.VSub_DollarName val)}
                                    {<Id.Lit_Equals '='>}
                                    {(DQ <true>)}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.ShAssignment
                                  left: <Id.Lit_VarLike 'force='>
                                  pairs: [
                                    (AssignPair
                                      left: <Id.Lit_VarLike 'force='>
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'force='>
                                          name: force
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ <true>)}
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ShAssignment
                                  left: <Id.Lit_VarLike 'force='>
                                  pairs: [
                                    (AssignPair
                                      left: <Id.Lit_VarLike 'force='>
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'force='>
                                          name: force
                                        )
                                      op: assign_op.Equal
                                      rhs: (rhs_word__Empty)
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              ops: [<Id.Op_DAmp _> <Id.Op_DPipe _>]
                            )
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [{<echo>} {(DQ <ok>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_Star '*'>
                          pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [{<echo>} {(DQ <unsupported>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <Id.Left_SingleQuote '\''>
                  pattern: (pat.Words words:[{(SQ )}])
                  middle: <Id.Right_CasePat _>
                  action: [(command.ControlFlow keyword:<Id.ControlFlow_Exit exit>)]
                  right: <Id.Op_DSemi _>
                )
              ]
              arms_end: <Id.KW_Esac esac>
              redirects: []
            )
          ]
          right: <Id.KW_Done done>
        )
      redirects: []
    )
  ]
)