(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dashless='> name:dashless)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Pipeline
                    children: [
                      (C {<basename>} {(DQ ($ Id.VSub_Number 0))})
                      (C {<sed>} {<-e>} {(SQ <'s/-/ /'>)})
                    ]
                    negated: F
                    stderr_indices: []
                  )
                right: <Id.Eof_RParen _>
              )
            }
          spids: [16]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'USAGE='> name:USAGE)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                <
'[--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]\n'
                > <'   or: '> ($ Id.VSub_DollarName dashless) 
                <' [--quiet] status [--cached] [--recursive] [--] [<path>...]\n'> <'   or: '> ($ Id.VSub_DollarName dashless) <' [--quiet] init [--] [<path>...]\n'> <'   or: '> 
                ($ Id.VSub_DollarName dashless) <' [--quiet] deinit [-f|--force] (--all| [--] <path>...)\n'> <'   or: '> 
                ($ Id.VSub_DollarName dashless) 
                <
' [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--] [<path>...]\n'
                > <'   or: '> ($ Id.VSub_DollarName dashless) 
                <
' [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]\n'
                > <'   or: '> ($ Id.VSub_DollarName dashless) <' [--quiet] foreach [--recursive] <command>\n'> <'   or: '> 
                ($ Id.VSub_DollarName dashless) <' [--quiet] sync [--recursive] [--] [<path>...]'>
              )
            }
          spids: [35]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'OPTIONS_SPEC='> name:OPTIONS_SPEC)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [61]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBDIRECTORY_OK='> name:SUBDIRECTORY_OK)
          op: assign_op.Equal
          rhs: {<Yes>}
          spids: [63]
        )
      ]
      redirects: []
    )
    (C {<.>} {<git-sh-setup>})
    (C {<.>} {<git-parse-remote>})
    (C {<require_work_tree>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'wt_prefix='> name:wt_prefix)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: (C {<git>} {<rev-parse>} {<--show-prefix>})
                right: <Id.Eof_RParen _>
              )
            }
          spids: [76]
        )
      ]
      redirects: []
    )
    (C {<cd_to_toplevel>})
    (C {<Id.Lit_Colon ':'>} 
      {
        (braced_var_sub
          left: <Id.Left_DollarBrace '${'>
          token: <Id.VSub_Name GIT_ALLOW_PROTOCOL>
          var_name: GIT_ALLOW_PROTOCOL
          suffix_op: (suffix_op.Unary op:<Id.VTest_Equals _> arg_word:{<'file:git:http:https:ssh'>})
          right: <Id.Right_DollarBrace '}'>
        )
      }
    )
    (C {<export>} {<GIT_ALLOW_PROTOCOL>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'command='> name:command)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [119]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'branch='> name:branch)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [121]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'force='> name:force)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [123]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'reference='> name:reference)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [125]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cached='> name:cached)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [127]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'recursive='> name:recursive)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [129]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'init='> name:init)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [131]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'files='> name:files)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [133]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'remote='> name:remote)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [135]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'nofetch='> name:nofetch)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [137]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'update='> name:update)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [139]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prefix='> name:prefix)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [141]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'custom_name='> name:custom_name)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [143]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'depth='> name:depth)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [145]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'progress='> name:progress)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [147]
        )
      ]
      redirects: []
    )
    (command.ShFunction
      name: die_if_unmatched
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} 
                          {(DQ <'#unmatched'>)}
                        )
                      ]
                    )
                  action: [
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: 
                        {
                          (braced_var_sub
                            left: <Id.Left_DollarBrace '${'>
                            token: <Id.VSub_Number 2>
                            var_name: 2
                            suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<1>})
                            right: <Id.Right_DollarBrace '}'>
                          )
                        }
                    )
                  ]
                  spids: [158 173]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: get_submodule_config
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'name='> name:name)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                  spids: [237]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'option='> name:option)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 2))}
                  spids: [243]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'default='> name:default)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 3))}
                  spids: [249]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'value='> name:value)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<git>} {<config>} 
                            {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.> 
                              (DQ ($ Id.VSub_DollarName option))
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [255]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName value))})]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'value='> name:value)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<git>} {<config>} {<-f>} {<.gitmodules>} 
                                    {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.> 
                                      (DQ ($ Id.VSub_DollarName option))
                                    }
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [286]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [272 283]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<printf>} {(SQ <'%s'>)} 
              {
                (DQ 
                  (braced_var_sub
                    left: <Id.Left_DollarBrace '${'>
                    token: <Id.VSub_Name value>
                    var_name: value
                    suffix_op: 
                      (suffix_op.Unary
                        op: <Id.VTest_ColonHyphen _>
                        arg_word: {($ Id.VSub_DollarName default)}
                      )
                    right: <Id.Right_DollarBrace '}'>
                  )
                )
              }
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: isnumber
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'n='> name:n)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (word_part.ArithSub
                            anode: 
                              (arith_expr.Binary
                                op_id: Id.Arith_Plus
                                left: {($ Id.VSub_Number 1)}
                                right: {<Id.Lit_Digits 0>}
                              )
                          )
                        }
                      spids: [334]
                    )
                  ]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '2>'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<'/dev/null'>}
                    )
                  ]
                )
                (C {<test>} {(DQ ($ Id.VSub_DollarName n))} {<Id.Lit_Equals '='>} 
                  {(DQ ($ Id.VSub_Number 1))}
                )
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: sanitize_submodule_env
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'save_config='> name:save_config)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_DollarName GIT_CONFIG_PARAMETERS)}
                  spids: [380]
                )
              ]
              redirects: []
            )
            (C {<clear_local_git_env>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'GIT_CONFIG_PARAMETERS='>
                      name: GIT_CONFIG_PARAMETERS
                    )
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_DollarName save_config)}
                  spids: [387]
                )
              ]
              redirects: []
            )
            (C {<export>} {<GIT_CONFIG_PARAMETERS>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_add
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'reference_path='> name:reference_path)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [430]
                )
              ]
              redirects: []
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-b>} {<--branch>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [472 474 478 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'branch='> name:branch)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 2)}
                                  spids: [483]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [456 461 490 -1]
                        )
                        (case_arm
                          pat_list: [{<-f>} {<--force>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'force='> name:force)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 1)}
                                  spids: [501]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [493 498 505 -1]
                        )
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [514]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [508 511 518 -1]
                        )
                        (case_arm
                          pat_list: [{<--reference>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [533 535 539 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'reference_path='>
                                      name: reference_path
                                    )
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 2)}
                                  spids: [544]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [521 522 551 -1]
                        )
                        (case_arm
                          pat_list: [{<--reference> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'reference_path='>
                                      name: reference_path
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (DQ 
                                        (braced_var_sub
                                          left: <Id.Left_DollarBrace '${'>
                                          token: <Id.VSub_Number 1>
                                          var_name: 1
                                          suffix_op: 
                                            (suffix_op.Unary
                                              op: <Id.VOp1_Pound '#'>
                                              arg_word: {<'--reference='>}
                                            )
                                          right: <Id.Right_DollarBrace '}'>
                                        )
                                      )
                                    }
                                  spids: [560]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [554 557 570 -1]
                        )
                        (case_arm
                          pat_list: [{<--name>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [585 587 591 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'custom_name='>
                                      name: custom_name
                                    )
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 2)}
                                  spids: [596]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [573 574 603 -1]
                        )
                        (case_arm
                          pat_list: [{<--depth>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [618 620 624 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'depth='> name:depth)
                                  op: assign_op.Equal
                                  rhs: {(DQ <'--depth='> ($ Id.VSub_Number 2))}
                                  spids: [629]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [606 607 639 -1]
                        )
                        (case_arm
                          pat_list: [{<--depth> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'depth='> name:depth)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 1)}
                                  spids: [648]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [642 645 652 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [655 656 665 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [668 670 676 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [679 680 686 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName reference_path))})]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<is_absolute_path>} {(DQ ($ Id.VSub_DollarName reference_path))})
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'reference_path='>
                                  name: reference_path
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (DQ ($ Id.VSub_DollarName wt_prefix) 
                                    ($ Id.VSub_DollarName reference_path)
                                  )
                                }
                              spids: [722]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'reference='> name:reference)
                          op: assign_op.Equal
                          rhs: {(DQ <'--reference='> ($ Id.VSub_DollarName reference_path))}
                          spids: [730]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [699 710]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'repo='> name:repo)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 1)}
                  spids: [741]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sm_path='> name:sm_path)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number 2)}
                  spids: [745]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName sm_path))})
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sm_path='> name:sm_path)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<printf>} {(SQ <'%s\\n'>)} {(DQ ($ Id.VSub_DollarName repo))})
                                      (C {<sed>} {<-e>} {(SQ <'s|/$||'>)} {<-e>} {(SQ <'s|:*/*\\.git$||'>)} 
                                        {<-e>} {(SQ <'s|.*[/:]||g'>)}
                                      )
                                    ]
                                    negated: F
                                    stderr_indices: []
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [764]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [750 761]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName repo))})
                                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName sm_path))})
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<usage>})]
                  spids: [805 826]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<is_absolute_path>} {(DQ ($ Id.VSub_DollarName sm_path))})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sm_path='> name:sm_path)
                      op: assign_op.Equal
                      rhs: {(DQ ($ Id.VSub_DollarName wt_prefix) ($ Id.VSub_DollarName sm_path))}
                      spids: [844]
                    )
                  ]
                  redirects: []
                )
              ]
            )
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName repo))}
              arms: [
                (case_arm
                  pat_list: [{<'./'> <Id.Lit_Star '*'>} {<'../'> <Id.Lit_Star '*'>}]
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName wt_prefix))})
                        (C {<die>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<gettext>} 
                                    {
                                      (DQ 
                                        <
'Relative path can only be used from the toplevel of the working tree'
                                        >
                                      )
                                    }
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            )
                          }
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'realrepo='> name:realrepo)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<submodule--helper>} {<resolve-relative-url>} 
                                        {(DQ ($ Id.VSub_DollarName repo))}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [902]
                            )
                          ]
                          redirects: []
                        )
                        (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
                      ]
                    )
                  ]
                  spids: [865 870 920 -1]
                )
                (case_arm
                  pat_list: [
                    {<Id.Lit_Star '*'> <Id.Lit_Colon ':'> <Id.Lit_Star '*'>}
                    {<'/'> <Id.Lit_Star '*'>}
                  ]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'realrepo='> name:realrepo)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName repo)}
                          spids: [936]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [923 929 940 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (C {<die>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<eval_gettext>} 
                                {
                                  (DQ <'repo URL: \''> 
                                    (word_part.EscapedLiteral
                                      token: <Id.Lit_EscapedChar '\\$'>
                                      ch: '$'
                                    ) <'repo\' must be absolute or begin with ./|../'>
                                  )
                                }
                              )
                            right: <Id.Eof_RParen _>
                          )
                        )
                      }
                    )
                  ]
                  spids: [943 944 962 -1]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sm_path='> name:sm_path)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<printf>} {(SQ <'%s/\\n'>)} {(DQ ($ Id.VSub_DollarName sm_path))})
                              (C {<sed>} {<-e>} 
                                {
                                  (SQ <'\n'> <'\t\t\ts|//*|/|g\n'> <'\t\t\ts|^\\(\\./\\)*||\n'> 
                                    <'\t\t\ts|/\\(\\./\\)*|/|g\n'> <'\t\t\t:start\n'> <'\t\t\ts|\\([^/]*\\)/\\.\\./||\n'> <'\t\t\ttstart\n'> <'\t\t\ts|/*$||\n'> <'\t\t'>
                                  )
                                }
                              )
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [977]
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.Simple
                  words: [{<git>} {<ls-files>} {<--error-unmatch>} {(DQ ($ Id.VSub_DollarName sm_path))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<'/dev/null'>}
                    )
                    (redir
                      op: <Id.Redir_GreatAnd '2>&'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<1>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'\''> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <'sm_path\' already exists in the index'>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName force))})
                            (command.Pipeline
                              children: [
                                (command.Simple
                                  words: [
                                    {<git>}
                                    {<add>}
                                    {<--dry-run>}
                                    {<--ignore-missing>}
                                    {(DQ ($ Id.VSub_DollarName sm_path))}
                                  ]
                                  redirects: [
                                    (redir
                                      op: <Id.Redir_Great '>'>
                                      loc: (redir_loc.Fd fd:1)
                                      arg: {<'/dev/null'>}
                                    )
                                    (redir
                                      op: <Id.Redir_GreatAnd '2>&'>
                                      loc: (redir_loc.Fd fd:2)
                                      arg: {<1>}
                                    )
                                  ]
                                  more_env: []
                                  do_fork: T
                                )
                              ]
                              negated: T
                              stderr_indices: []
                            )
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [
                        {<eval_gettextln>}
                        {
                          (DQ <'The following path is ignored by one of your .gitignore files:\n'> 
                            (word_part.EscapedLiteral
                              token: <Id.Lit_EscapedChar '\\$'>
                              ch: '$'
                            ) <'sm_path\n'> <'Use -f if you really want to add it.'>
                          )
                        }
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [1046 1080]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName custom_name))})]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sm_name='> name:sm_name)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName custom_name))}
                          spids: [1119]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1105 1116]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sm_name='> name:sm_name)
                      op: assign_op.Equal
                      rhs: {(DQ ($ Id.VSub_DollarName sm_path))}
                      spids: [1128]
                    )
                  ]
                  redirects: []
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName sm_path))})]
                    )
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (C {<test>} {<-d>} {(DQ ($ Id.VSub_DollarName sm_path)) <'/.git'>})
                                    (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName sm_path)) <'/.git'>})
                                  ]
                                )
                              ]
                            )
                          action: [
                            (C {<eval_gettextln>} 
                              {
                                (DQ <'Adding existing repo at \''> 
                                  (word_part.EscapedLiteral
                                    token: <Id.Lit_EscapedChar '\\$'>
                                    ch: '$'
                                  ) <'sm_path\' to the index'>
                                )
                              }
                            )
                          ]
                          spids: [1156 1179]
                        )
                      ]
                      else_action: [
                        (C {<die>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<eval_gettext>} 
                                    {
                                      (DQ <'\''> 
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\$'>
                                          ch: '$'
                                        ) <'sm_path\' already exists and is not a valid git repo'>
                                      )
                                    }
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            )
                          }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1142 1153]
                )
              ]
              else_action: [
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (C {<test>} {<-d>} {(DQ <'.git/modules/'> ($ Id.VSub_DollarName sm_name))})
                          ]
                        )
                      action: [
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName force))})]
                                )
                              action: [
                                (command.Simple
                                  words: [
                                    {<eval_gettextln>}
                                    {
                                      (DQ <'A git directory for \''> 
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\$'>
                                          ch: '$'
                                        ) <'sm_name\' is found locally with remote(s):'>
                                      )
                                    }
                                  ]
                                  redirects: [
                                    (redir
                                      op: <Id.Redir_GreatAnd '>&'>
                                      loc: (redir_loc.Fd fd:1)
                                      arg: {<2>}
                                    )
                                  ]
                                  more_env: []
                                  do_fork: T
                                )
                                (command.Pipeline
                                  children: [
                                    (command.Simple
                                      words: [{<git>} {<remote>} {<-v>}]
                                      redirects: []
                                      more_env: [
                                        (env_pair
                                          name: GIT_DIR
                                          val: {(DQ <'.git/modules/'> ($ Id.VSub_DollarName sm_name))}
                                          spids: [1257]
                                        )
                                        (env_pair
                                          name: GIT_WORK_TREE
                                          val: {<.>}
                                          spids: [1263]
                                        )
                                      ]
                                      do_fork: T
                                    )
                                    (C {<grep>} {(SQ <'(fetch)'>)})
                                    (command.Simple
                                      words: [
                                        {<sed>}
                                        {<-e>}
                                        {<s> <Id.Lit_Comma ','> <Id.Lit_Other '^'> <Id.Lit_Comma ','> 
                                          (DQ <'  '>) <Id.Lit_Comma ','>
                                        }
                                        {<-e>}
                                        {<s> <Id.Lit_Comma ','> (SQ <' (fetch)'>) <Id.Lit_Comma ','> 
                                          <Id.Lit_Comma ','>
                                        }
                                      ]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_GreatAnd '>&'>
                                          loc: (redir_loc.Fd fd:1)
                                          arg: {<2>}
                                        )
                                      ]
                                      more_env: []
                                      do_fork: T
                                    )
                                  ]
                                  negated: F
                                  stderr_indices: []
                                )
                                (C {<die>} 
                                  {
                                    (DQ 
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<eval_gettextln>} 
                                            {
                                              (DQ 
                                                <
'If you want to reuse this local git directory instead of cloning again from\n'
                                                > <'  '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'realrepo\n'> 
                                                <
'use the \'--force\' option. If the local git directory is not the correct repo\n'
                                                > <'or you are unsure what this means choose another name with the \'--name\' option.'>
                                              )
                                            }
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    )
                                  }
                                )
                              ]
                              spids: [1231 1242]
                            )
                          ]
                          else_action: [
                            (C {<eval_gettextln>} 
                              {
                                (DQ <'Reactivating local git directory for submodule \''> 
                                  (word_part.EscapedLiteral
                                    token: <Id.Lit_EscapedChar '\\$'>
                                    ch: '$'
                                  ) <'sm_name\'.'>
                                )
                              }
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [1216 1228]
                    )
                  ]
                  else_action: []
                  redirects: []
                )
                (command.AndOr
                  ops: [Id.Op_DPipe]
                  children: [
                    (C {<git>} {<submodule--helper>} {<clone>} 
                      {
                        (braced_var_sub
                          left: <Id.Left_DollarBrace '${'>
                          token: <Id.VSub_Name GIT_QUIET>
                          var_name: GIT_QUIET
                          suffix_op: (suffix_op.Unary op:<Id.VTest_ColonPlus _> arg_word:{<--quiet>})
                          right: <Id.Right_DollarBrace '}'>
                        )
                      } {<--prefix>} {(DQ ($ Id.VSub_DollarName wt_prefix))} {<--path>} {(DQ ($ Id.VSub_DollarName sm_path))} 
                      {<--name>} {(DQ ($ Id.VSub_DollarName sm_name))} {<--url>} {(DQ ($ Id.VSub_DollarName realrepo))} 
                      {
                        (braced_var_sub
                          left: <Id.Left_DollarBrace '${'>
                          token: <Id.VSub_Name reference>
                          var_name: reference
                          suffix_op: 
                            (suffix_op.Unary
                              op: <Id.VTest_ColonPlus _>
                              arg_word: {(DQ ($ Id.VSub_DollarName reference))}
                            )
                          right: <Id.Right_DollarBrace '}'>
                        )
                      } 
                      {
                        (braced_var_sub
                          left: <Id.Left_DollarBrace '${'>
                          token: <Id.VSub_Name depth>
                          var_name: depth
                          suffix_op: 
                            (suffix_op.Unary
                              op: <Id.VTest_ColonPlus _>
                              arg_word: {(DQ ($ Id.VSub_DollarName depth))}
                            )
                          right: <Id.Right_DollarBrace '}'>
                        )
                      }
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
                  ]
                )
                (command.AndOr
                  ops: [Id.Op_DPipe]
                  children: [
                    (command.Subshell
                      child: 
                        (command.CommandList
                          children: [
                            (C {<sanitize_submodule_env>})
                            (command.AndOr
                              ops: [Id.Op_DAmp]
                              children: [
                                (C {<cd>} {(DQ ($ Id.VSub_DollarName sm_path))})
                                (command.Case
                                  to_match: {(DQ ($ Id.VSub_DollarName branch))}
                                  arms: [
                                    (case_arm
                                      pat_list: [{(SQ )}]
                                      action: [(C {<git>} {<checkout>} {<-f>} {<-q>})]
                                      spids: [1431 1433 1443 -1]
                                    )
                                    (case_arm
                                      pat_list: [{<Id.Lit_QMark '?'> <Id.Lit_Star '*'>}]
                                      action: [
                                        (C {<git>} {<checkout>} {<-f>} {<-q>} {<-B>} 
                                          {(DQ ($ Id.VSub_DollarName branch))} {(DQ <'origin/'> ($ Id.VSub_DollarName branch))}
                                        )
                                      ]
                                      spids: [1446 1448 1469 -1]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                            )
                          ]
                        )
                      redirects: []
                    )
                    (C {<die>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<eval_gettext>} 
                                {
                                  (DQ <'Unable to checkout submodule \''> 
                                    (word_part.EscapedLiteral
                                      token: <Id.Lit_EscapedChar '\\$'>
                                      ch: '$'
                                    ) <'sm_path\''>
                                  )
                                }
                              )
                            right: <Id.Eof_RParen _>
                          )
                        )
                      }
                    )
                  ]
                )
              ]
              redirects: []
            )
            (C {<git>} {<config>} {<submodule.> (DQ ($ Id.VSub_DollarName sm_name)) <.url>} 
              {(DQ ($ Id.VSub_DollarName realrepo))}
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<git>} {<add>} {($ Id.VSub_DollarName force)} {(DQ ($ Id.VSub_DollarName sm_path))})
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'Failed to add submodule \''> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <'sm_path\''>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DPipe]
              children: [
                (C {<git>} {<config>} {<-f>} {<.gitmodules>} 
                  {<submodule.> (DQ ($ Id.VSub_DollarName sm_name)) <.path>} {(DQ ($ Id.VSub_DollarName sm_path))}
                )
                (C {<git>} {<config>} {<-f>} {<.gitmodules>} 
                  {<submodule.> (DQ ($ Id.VSub_DollarName sm_name)) <.url>} {(DQ ($ Id.VSub_DollarName repo))}
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName branch))})]
                        )
                      action: [
                        (C {<git>} {<config>} {<-f>} {<.gitmodules>} 
                          {<submodule.> (DQ ($ Id.VSub_DollarName sm_name)) <.branch>} {(DQ ($ Id.VSub_DollarName branch))}
                        )
                      ]
                      spids: [1584 1595]
                    )
                  ]
                  else_action: []
                  redirects: []
                )
                (C {<git>} {<add>} {<--force>} {<.gitmodules>})
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'Failed to register submodule \''> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <'sm_path\''>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_foreach
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [1708]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [1702 1705 1712 -1]
                        )
                        (case_arm
                          pat_list: [{<--recursive>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'recursive='>
                                      name: recursive
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [1719]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [1715 1716 1723 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [1726 1728 1734 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [1737 1738 1744 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'toplevel='> name:toplevel)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<pwd>})
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1757]
                )
              ]
              redirects: []
            )
            (command.Simple
              words: [{<exec>}]
              redirects: [(redir op:<Id.Redir_LessAnd '3<&'> loc:(redir_loc.Fd fd:3) arg:{<0>})]
              more_env: []
              do_fork: T
            )
            (command.Pipeline
              children: [
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<submodule--helper>} {<list>} {<--prefix>} 
                          {(DQ ($ Id.VSub_DollarName wt_prefix))}
                        )
                        (C {<echo>} {(DQ <'#unmatched'>)} {($ Id.VSub_QMark '?')})
                      ]
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
                (command.WhileUntil
                  keyword: <Id.KW_While while>
                  cond: 
                    (condition.Shell
                      commands: [(C {<read>} {<mode>} {<sha1>} {<stage>} {<sm_path>})]
                    )
                  body: 
                    (command.DoGroup
                      children: [
                        (C {<die_if_unmatched>} {(DQ ($ Id.VSub_DollarName mode))} 
                          {(DQ ($ Id.VSub_DollarName sha1))}
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName sm_path)) <'/.git'>})
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'displaypath='>
                                          name: displaypath
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<submodule--helper>} {<relative-path>} 
                                                {
                                                  (DQ ($ Id.VSub_DollarName prefix) 
                                                    ($ Id.VSub_DollarName sm_path)
                                                  )
                                                } {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [1853]
                                    )
                                  ]
                                  redirects: []
                                )
                                (C {<say>} 
                                  {
                                    (DQ 
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<eval_gettext>} 
                                            {
                                              (DQ <'Entering \''> 
                                                (word_part.EscapedLiteral
                                                  token: <Id.Lit_EscapedChar '\\$'>
                                                  ch: '$'
                                                ) <'displaypath\''>
                                              )
                                            }
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    )
                                  }
                                )
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'name='> name:name)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<submodule--helper>} {<name>} 
                                                {(DQ ($ Id.VSub_DollarName sm_path))}
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [1887]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (command.Subshell
                                      child: 
                                        (command.CommandList
                                          children: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'prefix='>
                                                      name: prefix
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ ($ Id.VSub_DollarName prefix) 
                                                        ($ Id.VSub_DollarName sm_path) <'/'>
                                                      )
                                                    }
                                                  spids: [1904]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (C {<sanitize_submodule_env>})
                                            (command.AndOr
                                              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
                                              children: [
                                                (C {<cd>} {(DQ ($ Id.VSub_DollarName sm_path))})
                                                (command.ShAssignment
                                                  pairs: [
                                                    (assign_pair
                                                      lhs: 
                                                        (sh_lhs_expr.Name
                                                          left: <Id.Lit_VarLike 'sm_path='>
                                                          name: sm_path
                                                        )
                                                      op: assign_op.Equal
                                                      rhs: 
                                                        {
                                                          (command_sub
                                                            left_token: <Id.Left_DollarParen '$('>
                                                            child: 
                                                              (C {<git>} {<submodule--helper>} 
                                                                {<relative-path>} {(DQ ($ Id.VSub_DollarName sm_path))} {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                                              )
                                                            right: <Id.Eof_RParen _>
                                                          )
                                                        }
                                                      spids: [1924]
                                                    )
                                                  ]
                                                  redirects: []
                                                )
                                                (command.ShAssignment
                                                  pairs: [
                                                    (assign_pair
                                                      lhs: 
                                                        (sh_lhs_expr.Name
                                                          left: <Id.Lit_VarLike 'path='>
                                                          name: path
                                                        )
                                                      op: assign_op.Equal
                                                      rhs: {($ Id.VSub_DollarName sm_path)}
                                                      spids: [1948]
                                                    )
                                                  ]
                                                  redirects: []
                                                )
                                                (command.If
                                                  arms: [
                                                    (if_arm
                                                      cond: 
                                                        (condition.Shell
                                                          commands: [
                                                            (C {<test>} {($ Id.VSub_Pound '#')} {<-eq>} 
                                                              {<1>}
                                                            )
                                                          ]
                                                        )
                                                      action: [(C {<eval>} {(DQ ($ Id.VSub_Number 1))})]
                                                      spids: [1954 1965]
                                                    )
                                                  ]
                                                  else_action: [(C {(DQ ($ Id.VSub_At '@'))})]
                                                  redirects: []
                                                )
                                                (command.If
                                                  arms: [
                                                    (if_arm
                                                      cond: 
                                                        (condition.Shell
                                                          commands: [
                                                            (C {<test>} {<-n>} 
                                                              {(DQ ($ Id.VSub_DollarName recursive))}
                                                            )
                                                          ]
                                                        )
                                                      action: [
                                                        (C {<cmd_foreach>} {(DQ <--recursive>)} 
                                                          {(DQ ($ Id.VSub_At '@'))}
                                                        )
                                                      ]
                                                      spids: [1988 1999]
                                                    )
                                                  ]
                                                  else_action: []
                                                  redirects: []
                                                )
                                              ]
                                            )
                                          ]
                                        )
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_LessAnd '<&'>
                                          loc: (redir_loc.Fd fd:0)
                                          arg: {<3>}
                                        )
                                        (redir
                                          op: <Id.Redir_LessAnd '3<&'>
                                          loc: (redir_loc.Fd fd:3)
                                          arg: {<->}
                                        )
                                      ]
                                    )
                                    (C {<die>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<eval_gettext>} 
                                                {
                                                  (DQ <'Stopping at \''> 
                                                    (word_part.EscapedLiteral
                                                      token: <Id.Lit_EscapedChar '\\$'>
                                                      ch: '$'
                                                    ) <'displaypath\'; script returned non-zero status.'>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              ]
                              spids: [1838 1850]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                      ]
                    )
                  redirects: []
                )
              ]
              negated: F
              stderr_indices: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_init
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [2105]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2099 2102 2109 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [2112 2113 2122 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [2125 2127 2133 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [2136 2137 2143 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (C {<git>} 
              {
                (braced_var_sub
                  left: <Id.Left_DollarBrace '${'>
                  token: <Id.VSub_Name wt_prefix>
                  var_name: wt_prefix
                  suffix_op: 
                    (suffix_op.Unary
                      op: <Id.VTest_ColonPlus _>
                      arg_word: {<'-C '> (DQ ($ Id.VSub_DollarName wt_prefix))}
                    )
                  right: <Id.Right_DollarBrace '}'>
                )
              } {<submodule--helper>} {<init>} 
              {
                (braced_var_sub
                  left: <Id.Left_DollarBrace '${'>
                  token: <Id.VSub_Name GIT_QUIET>
                  var_name: GIT_QUIET
                  suffix_op: (suffix_op.Unary op:<Id.VTest_ColonPlus _> arg_word:{<--quiet>})
                  right: <Id.Right_DollarBrace '}'>
                )
              } 
              {
                (braced_var_sub
                  left: <Id.Left_DollarBrace '${'>
                  token: <Id.VSub_Name prefix>
                  var_name: prefix
                  suffix_op: 
                    (suffix_op.Unary
                      op: <Id.VTest_ColonPlus _>
                      arg_word: {<'--prefix '> (DQ ($ Id.VSub_DollarName prefix))}
                    )
                  right: <Id.Right_DollarBrace '}'>
                )
              } {(DQ ($ Id.VSub_At '@'))}
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_deinit
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'deinit_all='> name:deinit_all)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [2213]
                )
              ]
              redirects: []
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-f>} {<--force>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'force='> name:force)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 1)}
                                  spids: [2245]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2239 2242 2249 -1]
                        )
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [2258]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2252 2255 2262 -1]
                        )
                        (case_arm
                          pat_list: [{<--all>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'deinit_all='>
                                      name: deinit_all
                                    )
                                  op: assign_op.Equal
                                  rhs: {<t>}
                                  spids: [2269]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2265 2266 2273 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [2276 2277 2286 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [2289 2291 2297 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [2300 2301 2307 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName deinit_all))})
                            (C {<test>} {(DQ ($ Id.VSub_Pound '#'))} {<-ne>} {<0>})
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<eval_gettext>} {(DQ <'pathspec and --all are incompatible'>)})
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      more_env: []
                      do_fork: T
                    )
                    (C {<usage>})
                  ]
                  spids: [2320 2343]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {($ Id.VSub_Pound '#')} {<Id.Lit_Equals '='>} {<0>})
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName deinit_all))})
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<die>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<eval_gettext>} 
                                {
                                  (DQ 
                                    <
'Use \'--all\' if you really want to deinitialize all submodules'
                                    >
                                  )
                                }
                              )
                            right: <Id.Eof_RParen _>
                          )
                        )
                      }
                    )
                  ]
                  spids: [2368 2389]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.Pipeline
              children: [
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<submodule--helper>} {<list>} {<--prefix>} 
                          {(DQ ($ Id.VSub_DollarName wt_prefix))} {(DQ ($ Id.VSub_At '@'))}
                        )
                        (C {<echo>} {(DQ <'#unmatched'>)} {($ Id.VSub_QMark '?')})
                      ]
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
                (command.WhileUntil
                  keyword: <Id.KW_While while>
                  cond: 
                    (condition.Shell
                      commands: [(C {<read>} {<mode>} {<sha1>} {<stage>} {<sm_path>})]
                    )
                  body: 
                    (command.DoGroup
                      children: [
                        (C {<die_if_unmatched>} {(DQ ($ Id.VSub_DollarName mode))} 
                          {(DQ ($ Id.VSub_DollarName sha1))}
                        )
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'name='> name:name)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<git>} {<submodule--helper>} {<name>} 
                                            {(DQ ($ Id.VSub_DollarName sm_path))}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [2472]
                                )
                              ]
                              redirects: []
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'displaypath='>
                                  name: displaypath
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<submodule--helper>} {<relative-path>} 
                                        {(DQ ($ Id.VSub_DollarName sm_path))} {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [2491]
                            )
                          ]
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [(C {<test>} {<-d>} {(DQ ($ Id.VSub_DollarName sm_path))})]
                                )
                              action: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (C {<test>} {<-d>} 
                                              {(DQ ($ Id.VSub_DollarName sm_path) <'/.git'>)}
                                            )
                                          ]
                                        )
                                      action: [
                                        (C {<die>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<eval_gettext>} 
                                                    {
                                                      (DQ <'Submodule work tree \''> 
                                                        (word_part.EscapedLiteral
                                                          token: <Id.Lit_EscapedChar '\\$'>
                                                          ch: '$'
                                                        ) <'displaypath\' contains a .git directory\n'> 
                                                        <
'(use \'rm -rf\' if you really want to remove it including all of its history)'
                                                        >
                                                      )
                                                    }
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            )
                                          }
                                        )
                                      ]
                                      spids: [2532 2544]
                                    )
                                  ]
                                  else_action: []
                                  redirects: []
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName force))})
                                          ]
                                        )
                                      action: [
                                        (command.AndOr
                                          ops: [Id.Op_DPipe]
                                          children: [
                                            (C {<git>} {<rm>} {<-qn>} 
                                              {(DQ ($ Id.VSub_DollarName sm_path))}
                                            )
                                            (C {<die>} 
                                              {
                                                (DQ 
                                                  (command_sub
                                                    left_token: <Id.Left_DollarParen '$('>
                                                    child: 
                                                      (C {<eval_gettext>} 
                                                        {
                                                          (DQ <'Submodule work tree \''> 
                                                            (word_part.EscapedLiteral
                                                              token: <Id.Lit_EscapedChar '\\$'>
                                                              ch: '$'
                                                            ) <'displaypath\' contains local modifications; use \'-f\' to discard them'>
                                                          )
                                                        }
                                                      )
                                                    right: <Id.Eof_RParen _>
                                                  )
                                                )
                                              }
                                            )
                                          ]
                                        )
                                      ]
                                      spids: [2568 2579]
                                    )
                                  ]
                                  else_action: []
                                  redirects: []
                                )
                                (command.AndOr
                                  ops: [Id.Op_DAmp Id.Op_DPipe]
                                  children: [
                                    (C {<rm>} {<-rf>} {(DQ ($ Id.VSub_DollarName sm_path))})
                                    (C {<say>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<eval_gettext>} 
                                                {
                                                  (DQ <'Cleared directory \''> 
                                                    (word_part.EscapedLiteral
                                                      token: <Id.Lit_EscapedChar '\\$'>
                                                      ch: '$'
                                                    ) <'displaypath\''>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                    (C {<say>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<eval_gettext>} 
                                                {
                                                  (DQ <'Could not remove submodule work tree \''> 
                                                    (word_part.EscapedLiteral
                                                      token: <Id.Lit_EscapedChar '\\$'>
                                                      ch: '$'
                                                    ) <'displaypath\''>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              ]
                              spids: [2514 2525]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<mkdir>} {(DQ ($ Id.VSub_DollarName sm_path))})
                            (C {<say>} 
                              {
                                (DQ 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<eval_gettext>} 
                                        {
                                          (DQ <'Could not create empty submodule directory \''> 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\$'>
                                              ch: '$'
                                            ) <'displaypath\''>
                                          )
                                        }
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (C {<test>} {<-n>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<config>} {<--get-regexp>} 
                                                {<submodule.> 
                                                  (DQ ($ Id.VSub_DollarName name) 
                                                    <Id.Lit_BadBackslash '\\'> <.>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'url='> name:url)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<config>} 
                                                {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.url>}
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [2723]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.AndOr
                                  ops: [Id.Op_DAmp]
                                  children: [
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<config>}
                                        {<--remove-section>}
                                        {<submodule.> (DQ ($ Id.VSub_DollarName name))}
                                      ]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '2>'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      more_env: []
                                      do_fork: T
                                    )
                                    (C {<say>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<eval_gettext>} 
                                                {
                                                  (DQ <'Submodule \''> 
                                                    (word_part.EscapedLiteral
                                                      token: <Id.Lit_EscapedChar '\\$'>
                                                      ch: '$'
                                                    ) <'name\' ('> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                    <'url) unregistered for path \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'displaypath\''>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              ]
                              spids: [2688 2712]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                      ]
                    )
                  redirects: []
                )
              ]
              negated: F
              stderr_indices: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: is_tip_reachable
      body: 
        (command.Subshell
          child: 
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
              children: [
                (C {<sanitize_submodule_env>})
                (C {<cd>} {(DQ ($ Id.VSub_Number 1))})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rev='> name:rev)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (command.Simple
                                words: [
                                  {<git>}
                                  {<rev-list>}
                                  {<-n>}
                                  {<1>}
                                  {(DQ ($ Id.VSub_Number 2))}
                                  {<--not>}
                                  {<--all>}
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                more_env: []
                                do_fork: T
                              )
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [2803]
                    )
                  ]
                  redirects: []
                )
                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName rev))})
              ]
            )
          redirects: []
        )
    )
    (command.ShFunction
      name: fetch_in_submodule
      body: 
        (command.Subshell
          child: 
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp]
              children: [
                (C {<sanitize_submodule_env>})
                (C {<cd>} {(DQ ($ Id.VSub_Number 1))})
                (command.Case
                  to_match: {(DQ ($ Id.VSub_Number 2))}
                  arms: [
                    (case_arm
                      pat_list: [{(SQ )}]
                      action: [(C {<git>} {<fetch>})]
                      spids: [2870 2872 2879 -1]
                    )
                    (case_arm
                      pat_list: [{<Id.Lit_Star '*'>}]
                      action: [
                        (C {<shift>})
                        (C {<git>} {<fetch>} 
                          {
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<get_default_remote>})
                              right: <Id.Eof_RParen _>
                            )
                          } {(DQ ($ Id.VSub_At '@'))}
                        )
                      ]
                      spids: [2882 2883 2901 -1]
                    )
                  ]
                  redirects: []
                )
              ]
            )
          redirects: []
        )
    )
    (command.ShFunction
      name: cmd_update
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [2964]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2958 2961 2968 -1]
                        )
                        (case_arm
                          pat_list: [{<--progress>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'progress='>
                                      name: progress
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ <--progress>)}
                                  spids: [2975]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2971 2972 2981 -1]
                        )
                        (case_arm
                          pat_list: [{<-i>} {<--init>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'init='> name:init)
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [2990]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2984 2987 2994 -1]
                        )
                        (case_arm
                          pat_list: [{<--remote>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'remote='> name:remote)
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [3001]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2997 2998 3005 -1]
                        )
                        (case_arm
                          pat_list: [{<-N>} {<--no-fetch>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'nofetch='>
                                      name: nofetch
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [3014]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3008 3011 3018 -1]
                        )
                        (case_arm
                          pat_list: [{<-f>} {<--force>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'force='> name:force)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 1)}
                                  spids: [3027]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3021 3024 3031 -1]
                        )
                        (case_arm
                          pat_list: [{<-r>} {<--rebase>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'update='> name:update)
                                  op: assign_op.Equal
                                  rhs: {(DQ <rebase>)}
                                  spids: [3040]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3034 3037 3046 -1]
                        )
                        (case_arm
                          pat_list: [{<--reference>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [3061 3063 3067 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'reference='>
                                      name: reference
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ <'--reference='> ($ Id.VSub_Number 2))}
                                  spids: [3072]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [3049 3050 3082 -1]
                        )
                        (case_arm
                          pat_list: [{<--reference> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'reference='>
                                      name: reference
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 1))}
                                  spids: [3091]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3085 3088 3097 -1]
                        )
                        (case_arm
                          pat_list: [{<-m>} {<--merge>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'update='> name:update)
                                  op: assign_op.Equal
                                  rhs: {(DQ <merge>)}
                                  spids: [3106]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3100 3103 3112 -1]
                        )
                        (case_arm
                          pat_list: [{<--recursive>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'recursive='>
                                      name: recursive
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [3119]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3115 3116 3123 -1]
                        )
                        (case_arm
                          pat_list: [{<--checkout>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'update='> name:update)
                                  op: assign_op.Equal
                                  rhs: {(DQ <checkout>)}
                                  spids: [3130]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3126 3127 3136 -1]
                        )
                        (case_arm
                          pat_list: [{<--recommend-shallow>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'recommend_shallow='>
                                      name: recommend_shallow
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ <--recommend-shallow>)}
                                  spids: [3143]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3139 3140 3149 -1]
                        )
                        (case_arm
                          pat_list: [{<--no-recommend-shallow>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'recommend_shallow='>
                                      name: recommend_shallow
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ <--no-recommend-shallow>)}
                                  spids: [3156]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3152 3153 3162 -1]
                        )
                        (case_arm
                          pat_list: [{<--depth>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [3177 3179 3183 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'depth='> name:depth)
                                  op: assign_op.Equal
                                  rhs: {(DQ <'--depth='> ($ Id.VSub_Number 2))}
                                  spids: [3188]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [3165 3166 3198 -1]
                        )
                        (case_arm
                          pat_list: [{<--depth> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'depth='> name:depth)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 1)}
                                  spids: [3207]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3201 3204 3211 -1]
                        )
                        (case_arm
                          pat_list: [{<-j>} {<--jobs>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Number 2))}
                              arms: [
                                (case_arm
                                  pat_list: [{(SQ )}]
                                  action: [(C {<usage>})]
                                  spids: [3228 3230 3234 -1]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'jobs='> name:jobs)
                                  op: assign_op.Equal
                                  rhs: {(DQ <'--jobs='> ($ Id.VSub_Number 2))}
                                  spids: [3239]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [3214 3217 3249 -1]
                        )
                        (case_arm
                          pat_list: [{<--jobs> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'jobs='> name:jobs)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_Number 1)}
                                  spids: [3258]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [3252 3255 3262 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [3265 3266 3275 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [3278 3280 3286 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [3289 3290 3296 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName init))})]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<cmd_init>} {(DQ <-->)} {(DQ ($ Id.VSub_At '@'))})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                        )
                      ]
                    )
                  ]
                  spids: [3309 3320]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.Pipeline
              children: [
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<submodule--helper>} {<update-clone>} 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name GIT_QUIET>
                              var_name: GIT_QUIET
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {<--quiet>}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name progress>
                              var_name: progress
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {(DQ ($ Id.VSub_DollarName progress))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name wt_prefix>
                              var_name: wt_prefix
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {<'--prefix '> (DQ ($ Id.VSub_DollarName wt_prefix))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name prefix>
                              var_name: prefix
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: 
                                    {<'--recursive-prefix '> (DQ ($ Id.VSub_DollarName prefix))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name update>
                              var_name: update
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {<'--update '> (DQ ($ Id.VSub_DollarName update))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name reference>
                              var_name: reference
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {(DQ ($ Id.VSub_DollarName reference))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name depth>
                              var_name: depth
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {<'--depth '> (DQ ($ Id.VSub_DollarName depth))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name recommend_shallow>
                              var_name: recommend_shallow
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {(DQ ($ Id.VSub_DollarName recommend_shallow))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name jobs>
                              var_name: jobs
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {($ Id.VSub_DollarName jobs)}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } {(DQ ($ Id.VSub_At '@'))}
                        )
                        (C {<echo>} {(DQ <'#unmatched'>)} {($ Id.VSub_QMark '?')})
                      ]
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'err='> name:err)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [3463]
                        )
                      ]
                      redirects: []
                    )
                    (command.WhileUntil
                      keyword: <Id.KW_While while>
                      cond: 
                        (condition.Shell
                          commands: [
                            (C {<read>} {<mode>} {<sha1>} {<stage>} {<just_cloned>} {<sm_path>})
                          ]
                        )
                      body: 
                        (command.DoGroup
                          children: [
                            (C {<die_if_unmatched>} {(DQ ($ Id.VSub_DollarName mode))} 
                              {(DQ ($ Id.VSub_DollarName sha1))}
                            )
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'name='> name:name)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<submodule--helper>} {<name>} 
                                                {(DQ ($ Id.VSub_DollarName sm_path))}
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [3496]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ControlFlow
                                  token: <Id.ControlFlow_Exit exit>
                                )
                              ]
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'url='> name:url)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<git>} {<config>} 
                                            {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.url>}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [3514]
                                )
                              ]
                              redirects: []
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Pipeline
                                          children: [
                                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName update))})
                                          ]
                                          negated: T
                                          stderr_indices: []
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'update_module='>
                                              name: update_module
                                            )
                                          op: assign_op.Equal
                                          rhs: {($ Id.VSub_DollarName update)}
                                          spids: [3544]
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [3528 3541]
                                )
                              ]
                              else_action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'update_module='>
                                          name: update_module
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<config>} 
                                                {<submodule.> (DQ ($ Id.VSub_DollarName name)) 
                                                  <.update>
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [3551]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (C {<test>} {<-z>} 
                                              {(DQ ($ Id.VSub_DollarName update_module))}
                                            )
                                          ]
                                        )
                                      action: [
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: 
                                                (sh_lhs_expr.Name
                                                  left: <Id.Lit_VarLike 'update_module='>
                                                  name: update_module
                                                )
                                              op: assign_op.Equal
                                              rhs: {(DQ <checkout>)}
                                              spids: [3579]
                                            )
                                          ]
                                          redirects: []
                                        )
                                      ]
                                      spids: [3565 3576]
                                    )
                                  ]
                                  else_action: []
                                  redirects: []
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'displaypath='>
                                      name: displaypath
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<git>} {<submodule--helper>} {<relative-path>} 
                                            {
                                              (DQ ($ Id.VSub_DollarName prefix) 
                                                ($ Id.VSub_DollarName sm_path)
                                              )
                                            } {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [3592]
                                )
                              ]
                              redirects: []
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {($ Id.VSub_DollarName just_cloned)} {<-eq>} {<1>})
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'subsha1='>
                                              name: subsha1
                                            )
                                          op: assign_op.Equal
                                          rhs: (rhs_word.Empty)
                                          spids: [3626]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'update_module='>
                                              name: update_module
                                            )
                                          op: assign_op.Equal
                                          rhs: {<checkout>}
                                          spids: [3629]
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [3612 3623]
                                )
                              ]
                              else_action: [
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'subsha1='>
                                              name: subsha1
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.CommandList
                                                    children: [
                                                      (command.Sentence
                                                        child: (C {<sanitize_submodule_env>})
                                                        terminator: <Id.Op_Semi _>
                                                      )
                                                      (command.AndOr
                                                        ops: [Id.Op_DAmp]
                                                        children: [
                                                          (C {<cd>} 
                                                            {(DQ ($ Id.VSub_DollarName sm_path))}
                                                          )
                                                          (C {<git>} {<rev-parse>} {<--verify>} {<HEAD>})
                                                        ]
                                                      )
                                                    ]
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [3636]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (C {<die>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<eval_gettext>} 
                                                {
                                                  (DQ 
                                                    <
'Unable to find current revision in submodule path \''
                                                    > (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'displaypath\''>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              ]
                              redirects: []
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName remote))})
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'branch='>
                                              name: branch
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<git>} {<submodule--helper>} {<remote-branch>} 
                                                    {(DQ ($ Id.VSub_DollarName sm_path))}
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [3695]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName nofetch))})
                                              ]
                                            )
                                          action: [
                                            (command.AndOr
                                              ops: [Id.Op_DPipe]
                                              children: [
                                                (C {<fetch_in_submodule>} 
                                                  {(DQ ($ Id.VSub_DollarName sm_path))} {($ Id.VSub_DollarName depth)}
                                                )
                                                (C {<die>} 
                                                  {
                                                    (DQ 
                                                      (command_sub
                                                        left_token: <Id.Left_DollarParen '$('>
                                                        child: 
                                                          (C {<eval_gettext>} 
                                                            {
                                                              (DQ 
                                                                <
'Unable to fetch in submodule path \''
                                                                > (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'sm_path\''>
                                                              )
                                                            }
                                                          )
                                                        right: <Id.Eof_RParen _>
                                                      )
                                                    )
                                                  }
                                                )
                                              ]
                                            )
                                          ]
                                          spids: [3709 3720]
                                        )
                                      ]
                                      else_action: []
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'remote_name='>
                                              name: remote_name
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.CommandList
                                                    children: [
                                                      (command.Sentence
                                                        child: (C {<sanitize_submodule_env>})
                                                        terminator: <Id.Op_Semi _>
                                                      )
                                                      (command.AndOr
                                                        ops: [Id.Op_DAmp]
                                                        children: [
                                                          (C {<cd>} 
                                                            {(DQ ($ Id.VSub_DollarName sm_path))}
                                                          )
                                                          (C {<get_default_remote>})
                                                        ]
                                                      )
                                                    ]
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [3756]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.AndOr
                                      ops: [Id.Op_DPipe]
                                      children: [
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: 
                                                (sh_lhs_expr.Name
                                                  left: <Id.Lit_VarLike 'sha1='>
                                                  name: sha1
                                                )
                                              op: assign_op.Equal
                                              rhs: 
                                                {
                                                  (command_sub
                                                    left_token: <Id.Left_DollarParen '$('>
                                                    child: 
                                                      (command.CommandList
                                                        children: [
                                                          (command.Sentence
                                                            child: (C {<sanitize_submodule_env>})
                                                            terminator: <Id.Op_Semi _>
                                                          )
                                                          (command.AndOr
                                                            ops: [Id.Op_DAmp]
                                                            children: [
                                                              (C {<cd>} 
                                                                {(DQ ($ Id.VSub_DollarName sm_path))}
                                                              )
                                                              (C {<git>} {<rev-parse>} {<--verify>} 
                                                                {
                                                                  (DQ (${ Id.VSub_Name remote_name) 
                                                                    <'/'> (${ Id.VSub_Name branch)
                                                                  )
                                                                }
                                                              )
                                                            ]
                                                          )
                                                        ]
                                                      )
                                                    right: <Id.Eof_RParen _>
                                                  )
                                                }
                                              spids: [3773]
                                            )
                                          ]
                                          redirects: []
                                        )
                                        (C {<die>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<eval_gettext>} 
                                                    {
                                                      (DQ <'Unable to find current '> 
                                                        (word_part.EscapedLiteral
                                                          token: <Id.Lit_EscapedChar '\\$'>
                                                          ch: '$'
                                                        ) <'{remote_name}/'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                        <'{branch} revision in submodule path \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'sm_path\''>
                                                      )
                                                    }
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            )
                                          }
                                        )
                                      ]
                                    )
                                  ]
                                  spids: [3681 3692]
                                )
                              ]
                              else_action: []
                              redirects: []
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.AndOr
                                          ops: [Id.Op_DPipe]
                                          children: [
                                            (C {<test>} {(DQ ($ Id.VSub_DollarName subsha1))} 
                                              {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName sha1))}
                                            )
                                            (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName force))})
                                          ]
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'subforce='>
                                              name: subforce
                                            )
                                          op: assign_op.Equal
                                          rhs: {($ Id.VSub_DollarName force)}
                                          spids: [3859]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (command.AndOr
                                                  ops: [Id.Op_DAmp]
                                                  children: [
                                                    (C {<test>} {<-z>} 
                                                      {(DQ ($ Id.VSub_DollarName subsha1))}
                                                    )
                                                    (C {<test>} {<-z>} 
                                                      {(DQ ($ Id.VSub_DollarName force))}
                                                    )
                                                  ]
                                                )
                                              ]
                                            )
                                          action: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'subforce='>
                                                      name: subforce
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {(DQ <-f>)}
                                                  spids: [3891]
                                                )
                                              ]
                                              redirects: []
                                            )
                                          ]
                                          spids: [3867 3888]
                                        )
                                      ]
                                      else_action: []
                                      redirects: []
                                    )
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName nofetch))})
                                              ]
                                            )
                                          action: [
                                            (command.AndOr
                                              ops: [Id.Op_DPipe Id.Op_DPipe]
                                              children: [
                                                (C {<is_tip_reachable>} 
                                                  {(DQ ($ Id.VSub_DollarName sm_path))} {(DQ ($ Id.VSub_DollarName sha1))}
                                                )
                                                (C {<fetch_in_submodule>} 
                                                  {(DQ ($ Id.VSub_DollarName sm_path))} {($ Id.VSub_DollarName depth)}
                                                )
                                                (C {<die>} 
                                                  {
                                                    (DQ 
                                                      (command_sub
                                                        left_token: <Id.Left_DollarParen '$('>
                                                        child: 
                                                          (C {<eval_gettext>} 
                                                            {
                                                              (DQ 
                                                                <
'Unable to fetch in submodule path \''
                                                                > (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'displaypath\''>
                                                              )
                                                            }
                                                          )
                                                        right: <Id.Eof_RParen _>
                                                      )
                                                    )
                                                  }
                                                )
                                              ]
                                            )
                                            (command.AndOr
                                              ops: [Id.Op_DPipe Id.Op_DPipe]
                                              children: [
                                                (C {<is_tip_reachable>} 
                                                  {(DQ ($ Id.VSub_DollarName sm_path))} {(DQ ($ Id.VSub_DollarName sha1))}
                                                )
                                                (C {<fetch_in_submodule>} 
                                                  {(DQ ($ Id.VSub_DollarName sm_path))} {($ Id.VSub_DollarName depth)} {(DQ ($ Id.VSub_DollarName sha1))}
                                                )
                                                (C {<die>} 
                                                  {
                                                    (DQ 
                                                      (command_sub
                                                        left_token: <Id.Left_DollarParen '$('>
                                                        child: 
                                                          (C {<eval_gettext>} 
                                                            {
                                                              (DQ <'Fetched in submodule path \''> 
                                                                (word_part.EscapedLiteral
                                                                  token: <Id.Lit_EscapedChar '\\$'>
                                                                  ch: '$'
                                                                ) <'displaypath\', but it did not contain '> 
                                                                (word_part.EscapedLiteral
                                                                  token: <Id.Lit_EscapedChar '\\$'>
                                                                  ch: '$'
                                                                ) <'sha1. Direct fetching of that commit failed.'>
                                                              )
                                                            }
                                                          )
                                                        right: <Id.Eof_RParen _>
                                                      )
                                                    )
                                                  }
                                                )
                                              ]
                                            )
                                          ]
                                          spids: [3901 3912]
                                        )
                                      ]
                                      else_action: []
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'must_die_on_failure='>
                                              name: must_die_on_failure
                                            )
                                          op: assign_op.Equal
                                          rhs: (rhs_word.Empty)
                                          spids: [4020]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.Case
                                      to_match: {(DQ ($ Id.VSub_DollarName update_module))}
                                      arms: [
                                        (case_arm
                                          pat_list: [{<checkout>}]
                                          action: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'command='>
                                                      name: command
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ <'git checkout '> 
                                                        ($ Id.VSub_DollarName subforce) <' -q'>
                                                      )
                                                    }
                                                  spids: [4036]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'die_msg='>
                                                      name: die_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Unable to checkout \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'sha1\' in submodule path \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <'displaypath\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4044]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'say_msg='>
                                                      name: say_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Submodule path \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'displaypath\': checked out \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <'sha1\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4060]
                                                )
                                              ]
                                              redirects: []
                                            )
                                          ]
                                          spids: [4032 4033 4076 -1]
                                        )
                                        (case_arm
                                          pat_list: [{<rebase>}]
                                          action: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'command='>
                                                      name: command
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {(DQ <'git rebase'>)}
                                                  spids: [4083]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'die_msg='>
                                                      name: die_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Unable to rebase \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'sha1\' in submodule path \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <'displaypath\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4089]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'say_msg='>
                                                      name: say_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Submodule path \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'displaypath\': rebased into \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <'sha1\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4105]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'must_die_on_failure='>
                                                      name: must_die_on_failure
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {<yes>}
                                                  spids: [4121]
                                                )
                                              ]
                                              redirects: []
                                            )
                                          ]
                                          spids: [4079 4080 4125 -1]
                                        )
                                        (case_arm
                                          pat_list: [{<merge>}]
                                          action: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'command='>
                                                      name: command
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {(DQ <'git merge'>)}
                                                  spids: [4132]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'die_msg='>
                                                      name: die_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Unable to merge \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'sha1\' in submodule path \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <'displaypath\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4138]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'say_msg='>
                                                      name: say_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Submodule path \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'displaypath\': merged in \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <'sha1\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4154]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'must_die_on_failure='>
                                                      name: must_die_on_failure
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {<yes>}
                                                  spids: [4170]
                                                )
                                              ]
                                              redirects: []
                                            )
                                          ]
                                          spids: [4128 4129 4174 -1]
                                        )
                                        (case_arm
                                          pat_list: [{<Id.KW_Bang '!'> <Id.Lit_Star '*'>}]
                                          action: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'command='>
                                                      name: command
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (braced_var_sub
                                                          left: <Id.Left_DollarBrace '${'>
                                                          token: <Id.VSub_Name update_module>
                                                          var_name: update_module
                                                          suffix_op: 
                                                            (suffix_op.Unary
                                                              op: <Id.VOp1_Pound '#'>
                                                              arg_word: {<Id.Lit_Other '!'>}
                                                            )
                                                          right: <Id.Right_DollarBrace '}'>
                                                        )
                                                      )
                                                    }
                                                  spids: [4182]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'die_msg='>
                                                      name: die_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Execution of \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'command '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') 
                                                                  <
'sha1\' failed in submodule path \''
                                                                  > (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'displaypath\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4192]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'say_msg='>
                                                      name: say_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ <'Submodule path \''> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'displaypath\': \''> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'command '> 
                                                                  (word_part.EscapedLiteral
                                                                    token: <Id.Lit_EscapedChar '\\$'>
                                                                    ch: '$'
                                                                  ) <'sha1\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4210]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'must_die_on_failure='>
                                                      name: must_die_on_failure
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {<yes>}
                                                  spids: [4228]
                                                )
                                              ]
                                              redirects: []
                                            )
                                          ]
                                          spids: [4177 4179 4232 -1]
                                        )
                                        (case_arm
                                          pat_list: [{<Id.Lit_Star '*'>}]
                                          action: [
                                            (C {<die>} 
                                              {
                                                (DQ 
                                                  (command_sub
                                                    left_token: <Id.Left_DollarParen '$('>
                                                    child: 
                                                      (C {<eval_gettext>} 
                                                        {
                                                          (DQ <'Invalid update mode \''> 
                                                            ($ Id.VSub_DollarName update_module) <'\' for submodule \''> ($ Id.VSub_DollarName name) <'\''>
                                                          )
                                                        }
                                                      )
                                                    right: <Id.Eof_RParen _>
                                                  )
                                                )
                                              }
                                            )
                                          ]
                                          spids: [4235 4236 -1 4256]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (command.Subshell
                                                  child: 
                                                    (command.CommandList
                                                      children: [
                                                        (command.Sentence
                                                          child: (C {<sanitize_submodule_env>})
                                                          terminator: <Id.Op_Semi _>
                                                        )
                                                        (command.AndOr
                                                          ops: [Id.Op_DAmp]
                                                          children: [
                                                            (C {<cd>} 
                                                              {(DQ ($ Id.VSub_DollarName sm_path))}
                                                            )
                                                            (C {($ Id.VSub_DollarName command)} 
                                                              {(DQ ($ Id.VSub_DollarName sha1))}
                                                            )
                                                          ]
                                                        )
                                                      ]
                                                    )
                                                  redirects: []
                                                )
                                              ]
                                            )
                                          action: [(C {<say>} {(DQ ($ Id.VSub_DollarName say_msg))})]
                                          spids: [4260 4282]
                                        )
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {<-n>} 
                                                  {(DQ ($ Id.VSub_DollarName must_die_on_failure))}
                                                )
                                              ]
                                            )
                                          action: [
                                            (C {<die_with_status>} {<2>} 
                                              {(DQ ($ Id.VSub_DollarName die_msg))}
                                            )
                                          ]
                                          spids: [4292 4303]
                                        )
                                      ]
                                      else_action: [
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: 
                                                (sh_lhs_expr.Name
                                                  left: <Id.Lit_VarLike 'err='>
                                                  name: err
                                                )
                                              op: assign_op.Equal
                                              rhs: 
                                                {
                                                  (DQ (${ Id.VSub_Name err) <';'> 
                                                    ($ Id.VSub_DollarName die_msg)
                                                  )
                                                }
                                              spids: [4318]
                                            )
                                          ]
                                          redirects: []
                                        )
                                        (command.ControlFlow
                                          token: <Id.ControlFlow_Continue continue>
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [3830 3856]
                                )
                              ]
                              else_action: []
                              redirects: []
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName recursive))})
                                      ]
                                    )
                                  action: [
                                    (command.Subshell
                                      child: 
                                        (command.CommandList
                                          children: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'prefix='>
                                                      name: prefix
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (command_sub
                                                        left_token: <Id.Left_DollarParen '$('>
                                                        child: 
                                                          (C {<git>} {<submodule--helper>} 
                                                            {<relative-path>} {(DQ ($ Id.VSub_DollarName prefix) ($ Id.VSub_DollarName sm_path) <'/'>)} 
                                                            {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                                          )
                                                        right: <Id.Eof_RParen _>
                                                      )
                                                    }
                                                  spids: [4355]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'wt_prefix='>
                                                      name: wt_prefix
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: (rhs_word.Empty)
                                                  spids: [4375]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (C {<sanitize_submodule_env>})
                                            (command.AndOr
                                              ops: [Id.Op_DAmp]
                                              children: [
                                                (C {<cd>} {(DQ ($ Id.VSub_DollarName sm_path))})
                                                (C {<eval>} {<cmd_update>})
                                              ]
                                            )
                                          ]
                                        )
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'res='>
                                              name: res
                                            )
                                          op: assign_op.Equal
                                          rhs: {($ Id.VSub_QMark '?')}
                                          spids: [4398]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {($ Id.VSub_DollarName res)} {<-gt>} {<0>})
                                              ]
                                            )
                                          action: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'die_msg='>
                                                      name: die_msg
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: 
                                                    {
                                                      (DQ 
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<eval_gettext>} 
                                                              {
                                                                (DQ 
                                                                  <
'Failed to recurse into submodule path \''
                                                                  > (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'displaypath\''>
                                                                )
                                                              }
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  spids: [4416]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.If
                                              arms: [
                                                (if_arm
                                                  cond: 
                                                    (condition.Shell
                                                      commands: [
                                                        (C {<test>} {($ Id.VSub_DollarName res)} {<-ne>} 
                                                          {<2>}
                                                        )
                                                      ]
                                                    )
                                                  action: [
                                                    (command.ShAssignment
                                                      pairs: [
                                                        (assign_pair
                                                          lhs: 
                                                            (sh_lhs_expr.Name
                                                              left: <Id.Lit_VarLike 'err='>
                                                              name: err
                                                            )
                                                          op: assign_op.Equal
                                                          rhs: 
                                                            {
                                                              (DQ (${ Id.VSub_Name err) <';'> 
                                                                ($ Id.VSub_DollarName die_msg)
                                                              )
                                                            }
                                                          spids: [4444]
                                                        )
                                                      ]
                                                      redirects: []
                                                    )
                                                    (command.ControlFlow
                                                      token: <Id.ControlFlow_Continue continue>
                                                    )
                                                  ]
                                                  spids: [4430 4441]
                                                )
                                              ]
                                              else_action: [
                                                (C {<die_with_status>} {($ Id.VSub_DollarName res)} 
                                                  {(DQ ($ Id.VSub_DollarName die_msg))}
                                                )
                                              ]
                                              redirects: []
                                            )
                                          ]
                                          spids: [4402 4413]
                                        )
                                      ]
                                      else_action: []
                                      redirects: []
                                    )
                                  ]
                                  spids: [4338 4349]
                                )
                              ]
                              else_action: []
                              redirects: []
                            )
                          ]
                        )
                      redirects: []
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName err))})]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'OIFS='> name:OIFS)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_DollarName IFS)}
                                  spids: [4496]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'IFS='> name:IFS)
                                  op: assign_op.Equal
                                  rhs: {(SQ <';'>)}
                                  spids: [4500]
                                )
                              ]
                              redirects: []
                            )
                            (command.ForEach
                              iter_names: [e]
                              iterable: (for_iter.Words words:[{($ Id.VSub_DollarName err)}])
                              body: 
                                (command.DoGroup
                                  children: [
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName e))})
                                              ]
                                            )
                                          action: [
                                            (command.Simple
                                              words: [{<echo>} {(DQ ($ Id.VSub_DollarName e))}]
                                              redirects: [
                                                (redir
                                                  op: <Id.Redir_GreatAnd '>&'>
                                                  loc: (redir_loc.Fd fd:1)
                                                  arg: {<2>}
                                                )
                                              ]
                                              more_env: []
                                              do_fork: T
                                            )
                                          ]
                                          spids: [4518 4529]
                                        )
                                      ]
                                      else_action: []
                                      redirects: []
                                    )
                                  ]
                                )
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'IFS='> name:IFS)
                                  op: assign_op.Equal
                                  rhs: {($ Id.VSub_DollarName OIFS)}
                                  spids: [4548]
                                )
                              ]
                              redirects: []
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [4482 4493]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
              ]
              negated: F
              stderr_indices: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: set_name_rev
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'revname='> name:revname)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Subshell
                            child: 
                              (command.CommandList
                                children: [
                                  (C {<sanitize_submodule_env>})
                                  (command.AndOr
                                    ops: [Id.Op_DAmp]
                                    children: [
                                      (C {<cd>} {(DQ ($ Id.VSub_Number 1))})
                                      (BraceGroup
                                        left: <Id.Lit_LBrace '{'>
                                        children: [
                                          (command.AndOr
                                            ops: [Id.Op_DPipe Id.Op_DPipe Id.Op_DPipe]
                                            children: [
                                              (command.Simple
                                                words: [{<git>} {<describe>} {(DQ ($ Id.VSub_Number 2))}]
                                                redirects: [
                                                  (redir
                                                    op: <Id.Redir_Great '2>'>
                                                    loc: (redir_loc.Fd fd:2)
                                                    arg: {<'/dev/null'>}
                                                  )
                                                ]
                                                more_env: []
                                                do_fork: T
                                              )
                                              (command.Simple
                                                words: [
                                                  {<git>}
                                                  {<describe>}
                                                  {<--tags>}
                                                  {(DQ ($ Id.VSub_Number 2))}
                                                ]
                                                redirects: [
                                                  (redir
                                                    op: <Id.Redir_Great '2>'>
                                                    loc: (redir_loc.Fd fd:2)
                                                    arg: {<'/dev/null'>}
                                                  )
                                                ]
                                                more_env: []
                                                do_fork: T
                                              )
                                              (command.Simple
                                                words: [
                                                  {<git>}
                                                  {<describe>}
                                                  {<--contains>}
                                                  {(DQ ($ Id.VSub_Number 2))}
                                                ]
                                                redirects: [
                                                  (redir
                                                    op: <Id.Redir_Great '2>'>
                                                    loc: (redir_loc.Fd fd:2)
                                                    arg: {<'/dev/null'>}
                                                  )
                                                ]
                                                more_env: []
                                                do_fork: T
                                              )
                                              (C {<git>} {<describe>} {<--all>} {<--always>} 
                                                {(DQ ($ Id.VSub_Number 2))}
                                              )
                                            ]
                                          )
                                        ]
                                        redirects: []
                                        right: <Id.Lit_RBrace '}'>
                                      )
                                    ]
                                  )
                                ]
                              )
                            redirects: []
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [4573]
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName revname))})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'revname='> name:revname)
                      op: assign_op.Equal
                      rhs: {(DQ <' ('> ($ Id.VSub_DollarName revname) <')'>)}
                      spids: [4670]
                    )
                  ]
                  redirects: []
                )
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_summary
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'summary_limit='> name:summary_limit)
                  op: assign_op.Equal
                  rhs: {<-1>}
                  spids: [4710]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'for_status='> name:for_status)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [4714]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diff_cmd='> name:diff_cmd)
                  op: assign_op.Equal
                  rhs: {<diff-index>}
                  spids: [4717]
                )
              ]
              redirects: []
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<--cached>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cached='> name:cached)
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 1))}
                                  spids: [4753]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [4749 4750 4759 -1]
                        )
                        (case_arm
                          pat_list: [{<--files>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'files='> name:files)
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 1))}
                                  spids: [4766]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [4762 4763 4772 -1]
                        )
                        (case_arm
                          pat_list: [{<--for-status>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'for_status='>
                                      name: for_status
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 1))}
                                  spids: [4779]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [4775 4776 4785 -1]
                        )
                        (case_arm
                          pat_list: [{<-n>} {<--summary-limit>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'summary_limit='>
                                      name: summary_limit
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 2))}
                                  spids: [4794]
                                )
                              ]
                              redirects: []
                            )
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (C {<isnumber>} {(DQ ($ Id.VSub_DollarName summary_limit))})
                                (C {<usage>})
                              ]
                            )
                            (C {<shift>})
                          ]
                          spids: [4788 4791 4814 -1]
                        )
                        (case_arm
                          pat_list: [{<--summary-limit> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'summary_limit='>
                                      name: summary_limit
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (DQ 
                                        (braced_var_sub
                                          left: <Id.Left_DollarBrace '${'>
                                          token: <Id.VSub_Number 1>
                                          var_name: 1
                                          suffix_op: 
                                            (suffix_op.Unary
                                              op: <Id.VOp1_Pound '#'>
                                              arg_word: {<'--summary-limit='>}
                                            )
                                          right: <Id.Right_DollarBrace '}'>
                                        )
                                      )
                                    }
                                  spids: [4823]
                                )
                              ]
                              redirects: []
                            )
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (C {<isnumber>} {(DQ ($ Id.VSub_DollarName summary_limit))})
                                (C {<usage>})
                              ]
                            )
                          ]
                          spids: [4817 4820 4844 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [4847 4848 4857 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [4860 4862 4868 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [4871 4872 4878 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {($ Id.VSub_DollarName summary_limit)} {<Id.Lit_Equals '='>} {<0>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rev='> name:rev)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<rev-parse>} {<-q>} {<--verify>} {<--default>} {<HEAD>} 
                                        {
                                          (braced_var_sub
                                            left: <Id.Left_DollarBrace '${'>
                                            token: <Id.VSub_Number 1>
                                            var_name: 1
                                            suffix_op: 
                                              (suffix_op.Unary
                                                op: <Id.VTest_Plus _>
                                                arg_word: {(DQ ($ Id.VSub_Number 1))}
                                              )
                                            right: <Id.Right_DollarBrace '}'>
                                          )
                                        }
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [4907]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head='> name:head)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName rev)}
                          spids: [4934]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {($ Id.VSub_Pound '#')} {<Id.Lit_Equals '='>} {<0>})
                        (C {<shift>})
                      ]
                    )
                  ]
                  spids: [4905 4931]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_Number 1))})
                            (C {<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {(DQ <HEAD>)})
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head='> name:head)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Simple
                                    words: [{<git>} {<hash-object>} {<-w>} {<-t>} {<tree>} {<--stdin>}]
                                    redirects: [
                                      (redir
                                        op: <Id.Redir_Less '<'>
                                        loc: (redir_loc.Fd fd:0)
                                        arg: {<'/dev/null'>}
                                      )
                                    ]
                                    more_env: []
                                    do_fork: T
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [4983]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_Number 1))}) (C {<shift>})]
                    )
                  ]
                  spids: [4951 4976]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head='> name:head)
                      op: assign_op.Equal
                      rhs: {(DQ <HEAD>)}
                      spids: [5018]
                    )
                  ]
                  redirects: []
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {<-n>} {(DQ ($ Id.VSub_DollarName files))} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName cached))})
                        (C {<die>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<gettext>} 
                                    {
                                      (DQ 
                                        <
'The --cached option cannot be used with the --files option'
                                        >
                                      )
                                    }
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            )
                          }
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diff_cmd='> name:diff_cmd)
                          op: assign_op.Equal
                          rhs: {<diff-files>}
                          spids: [5068]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head='> name:head)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [5072]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [5028 5041]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<cd_to_toplevel>})
            (C {<eval>} 
              {
                (DQ <'set '> 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (C {<git>} {<rev-parse>} {<--sq>} {<--prefix>} 
                        {(DQ ($ Id.VSub_DollarName wt_prefix))} {<-->} {(DQ ($ Id.VSub_At '@'))}
                      )
                    right: <Id.Eof_RParen _>
                  )
                )
              }
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'modules='> name:modules)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<git>} {($ Id.VSub_DollarName diff_cmd)} 
                                {($ Id.VSub_DollarName cached)} {<--ignore-submodules> <Id.Lit_Equals '='> <dirty>} {<--raw>} {($ Id.VSub_DollarName head)} {<-->} 
                                {(DQ ($ Id.VSub_At '@'))}
                              )
                              (C {<sane_egrep>} {(SQ <'^:([0-7]* )?160000'>)})
                              (command.WhileUntil
                                keyword: <Id.KW_While while>
                                cond: 
                                  (condition.Shell
                                    commands: [
                                      (C {<read>} {<mod_src>} {<mod_dst>} {<sha1_src>} {<sha1_dst>} 
                                        {<status>} {<sm_path>}
                                      )
                                    ]
                                  )
                                body: 
                                  (command.DoGroup
                                    children: [
                                      (command.If
                                        arms: [
                                          (if_arm
                                            cond: 
                                              (condition.Shell
                                                commands: [
                                                  (command.AndOr
                                                    ops: [Id.Op_DPipe]
                                                    children: [
                                                      (C {<test>} {(DQ ($ Id.VSub_DollarName status))} 
                                                        {<Id.Lit_Equals '='>} {<D>}
                                                      )
                                                      (C {<test>} {(DQ ($ Id.VSub_DollarName status))} 
                                                        {<Id.Lit_Equals '='>} {<T>}
                                                      )
                                                    ]
                                                  )
                                                ]
                                              )
                                            action: [
                                              (C {<printf>} {(SQ <'%s\\n'>)} 
                                                {(DQ ($ Id.VSub_DollarName sm_path))}
                                              )
                                              (command.ControlFlow
                                                token: <Id.ControlFlow_Continue continue>
                                              )
                                            ]
                                            spids: [5170 5195]
                                          )
                                        ]
                                        else_action: []
                                        redirects: []
                                      )
                                      (command.If
                                        arms: [
                                          (if_arm
                                            cond: 
                                              (condition.Shell
                                                commands: [
                                                  (C {<test>} {<-n>} 
                                                    {(DQ ($ Id.VSub_DollarName for_status))}
                                                  )
                                                ]
                                              )
                                            action: [
                                              (command.ShAssignment
                                                pairs: [
                                                  (assign_pair
                                                    lhs: 
                                                      (sh_lhs_expr.Name
                                                        left: <Id.Lit_VarLike 'name='>
                                                        name: name
                                                      )
                                                    op: assign_op.Equal
                                                    rhs: 
                                                      {
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<git>} {<submodule--helper>} {<name>} 
                                                              {(DQ ($ Id.VSub_DollarName sm_path))}
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      }
                                                    spids: [5233]
                                                  )
                                                ]
                                                redirects: []
                                              )
                                              (command.ShAssignment
                                                pairs: [
                                                  (assign_pair
                                                    lhs: 
                                                      (sh_lhs_expr.Name
                                                        left: <Id.Lit_VarLike 'ignore_config='>
                                                        name: ignore_config
                                                      )
                                                    op: assign_op.Equal
                                                    rhs: 
                                                      {
                                                        (command_sub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (C {<get_submodule_config>} 
                                                              {(DQ ($ Id.VSub_DollarName name))} {<ignore>} {<none>}
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      }
                                                    spids: [5247]
                                                  )
                                                ]
                                                redirects: []
                                              )
                                              (command.AndOr
                                                ops: [Id.Op_DAmp Id.Op_DAmp]
                                                children: [
                                                  (C {<test>} {($ Id.VSub_DollarName status)} 
                                                    {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<A>}
                                                  )
                                                  (C {<test>} {($ Id.VSub_DollarName ignore_config)} 
                                                    {<Id.Lit_Equals '='>} {<all>}
                                                  )
                                                  (command.ControlFlow
                                                    token: <Id.ControlFlow_Continue continue>
                                                  )
                                                ]
                                              )
                                            ]
                                            spids: [5219 5230]
                                          )
                                        ]
                                        else_action: []
                                        redirects: []
                                      )
                                      (command.AndOr
                                        ops: [Id.Op_DAmp]
                                        children: [
                                          (command.Simple
                                            words: [{<git-rev-parse>} {<--git-dir>}]
                                            redirects: [
                                              (redir
                                                op: <Id.Redir_Great '>'>
                                                loc: (redir_loc.Fd fd:1)
                                                arg: {<'/dev/null'>}
                                              )
                                              (redir
                                                op: <Id.Redir_GreatAnd '2>&'>
                                                loc: (redir_loc.Fd fd:2)
                                                arg: {<1>}
                                              )
                                            ]
                                            more_env: [
                                              (env_pair
                                                name: GIT_DIR
                                                val: {(DQ ($ Id.VSub_DollarName sm_path) <'/.git'>)}
                                                spids: [5292]
                                              )
                                            ]
                                            do_fork: T
                                          )
                                          (C {<printf>} {(SQ <'%s\\n'>)} 
                                            {(DQ ($ Id.VSub_DollarName sm_path))}
                                          )
                                        ]
                                      )
                                    ]
                                  )
                                redirects: []
                              )
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [5112]
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName modules))})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.Pipeline
              children: [
                (C {<git>} {($ Id.VSub_DollarName diff_cmd)} {($ Id.VSub_DollarName cached)} 
                  {<--ignore-submodules> <Id.Lit_Equals '='> <dirty>} {<--raw>} {($ Id.VSub_DollarName head)} {<-->} {($ Id.VSub_DollarName modules)}
                )
                (C {<sane_egrep>} {(SQ <'^:([0-7]* )?160000'>)})
                (C {<cut>} {<-c2->})
                (command.WhileUntil
                  keyword: <Id.KW_While while>
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<read>} {<mod_src>} {<mod_dst>} {<sha1_src>} {<sha1_dst>} {<status>} {<name>})
                      ]
                    )
                  body: 
                    (command.DoGroup
                      children: [
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.AndOr
                                      ops: [Id.Op_DAmp]
                                      children: [
                                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName cached))})
                                        (C {<test>} {($ Id.VSub_DollarName sha1_dst)} 
                                          {<Id.Lit_Equals '='>} {<0000000000000000000000000000000000000000>}
                                        )
                                      ]
                                    )
                                  ]
                                )
                              action: [
                                (command.Case
                                  to_match: {(DQ ($ Id.VSub_DollarName mod_dst))}
                                  arms: [
                                    (case_arm
                                      pat_list: [{<160000>}]
                                      action: [
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: 
                                                (sh_lhs_expr.Name
                                                  left: <Id.Lit_VarLike 'sha1_dst='>
                                                  name: sha1_dst
                                                )
                                              op: assign_op.Equal
                                              rhs: 
                                                {
                                                  (command_sub
                                                    left_token: <Id.Left_DollarParen '$('>
                                                    child: 
                                                      (command.Simple
                                                        words: [{<git>} {<rev-parse>} {<HEAD>}]
                                                        redirects: []
                                                        more_env: [
                                                          (env_pair
                                                            name: GIT_DIR
                                                            val: 
                                                              {
                                                                (DQ ($ Id.VSub_DollarName name) 
                                                                  <'/.git'>
                                                                )
                                                              }
                                                            spids: [5440]
                                                          )
                                                        ]
                                                        do_fork: T
                                                      )
                                                    right: <Id.Eof_RParen _>
                                                  )
                                                }
                                              spids: [5438]
                                            )
                                          ]
                                          redirects: []
                                        )
                                      ]
                                      spids: [5434 5435 5454 -1]
                                    )
                                    (case_arm
                                      pat_list: [{<100644>} {<100755>} {<120000>}]
                                      action: [
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: 
                                                (sh_lhs_expr.Name
                                                  left: <Id.Lit_VarLike 'sha1_dst='>
                                                  name: sha1_dst
                                                )
                                              op: assign_op.Equal
                                              rhs: 
                                                {
                                                  (command_sub
                                                    left_token: <Id.Left_DollarParen '$('>
                                                    child: 
                                                      (C {<git>} {<hash-object>} 
                                                        {($ Id.VSub_DollarName name)}
                                                      )
                                                    right: <Id.Eof_RParen _>
                                                  )
                                                }
                                              spids: [5469]
                                            )
                                          ]
                                          redirects: []
                                        )
                                      ]
                                      spids: [5457 5466 5479 -1]
                                    )
                                    (case_arm
                                      pat_list: [{<000000>}]
                                      action: []
                                      spids: [5482 5483 5486 -1]
                                    )
                                    (case_arm
                                      pat_list: [{<Id.Lit_Star '*'>}]
                                      action: [
                                        (command.Simple
                                          words: [
                                            {<eval_gettextln>}
                                            {
                                              (DQ <'unexpected mode '> 
                                                (word_part.EscapedLiteral
                                                  token: <Id.Lit_EscapedChar '\\$'>
                                                  ch: '$'
                                                ) <mod_dst>
                                              )
                                            }
                                          ]
                                          redirects: [
                                            (redir
                                              op: <Id.Redir_GreatAnd '>&'>
                                              loc: (redir_loc.Fd fd:1)
                                              arg: {<2>}
                                            )
                                          ]
                                          more_env: []
                                          do_fork: T
                                        )
                                        (command.ControlFlow
                                          token: <Id.ControlFlow_Continue continue>
                                        )
                                      ]
                                      spids: [5492 5493 5514 -1]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [5400 5422]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'missing_src='>
                                  name: missing_src
                                )
                              op: assign_op.Equal
                              rhs: (rhs_word.Empty)
                              spids: [5523]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'missing_dst='>
                                  name: missing_dst
                                )
                              op: assign_op.Equal
                              rhs: (rhs_word.Empty)
                              spids: [5526]
                            )
                          ]
                          redirects: []
                        )
                        (command.AndOr
                          ops: [Id.Op_DAmp Id.Op_DAmp]
                          children: [
                            (C {<test>} {($ Id.VSub_DollarName mod_src)} {<Id.Lit_Equals '='>} {<160000>})
                            (command.Pipeline
                              children: [
                                (command.Simple
                                  words: [
                                    {<git-rev-parse>}
                                    {<-q>}
                                    {<--verify>}
                                    {($ Id.VSub_DollarName sha1_src) <Id.Lit_Other '^'> <0>}
                                  ]
                                  redirects: [
                                    (redir
                                      op: <Id.Redir_Great '>'>
                                      loc: (redir_loc.Fd fd:1)
                                      arg: {<'/dev/null'>}
                                    )
                                  ]
                                  more_env: [
                                    (env_pair
                                      name: GIT_DIR
                                      val: {(DQ ($ Id.VSub_DollarName name) <'/.git'>)}
                                      spids: [5543]
                                    )
                                  ]
                                  do_fork: T
                                )
                              ]
                              negated: T
                              stderr_indices: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'missing_src='>
                                      name: missing_src
                                    )
                                  op: assign_op.Equal
                                  rhs: {<t>}
                                  spids: [5565]
                                )
                              ]
                              redirects: []
                            )
                          ]
                        )
                        (command.AndOr
                          ops: [Id.Op_DAmp Id.Op_DAmp]
                          children: [
                            (C {<test>} {($ Id.VSub_DollarName mod_dst)} {<Id.Lit_Equals '='>} {<160000>})
                            (command.Pipeline
                              children: [
                                (command.Simple
                                  words: [
                                    {<git-rev-parse>}
                                    {<-q>}
                                    {<--verify>}
                                    {($ Id.VSub_DollarName sha1_dst) <Id.Lit_Other '^'> <0>}
                                  ]
                                  redirects: [
                                    (redir
                                      op: <Id.Redir_Great '>'>
                                      loc: (redir_loc.Fd fd:1)
                                      arg: {<'/dev/null'>}
                                    )
                                  ]
                                  more_env: [
                                    (env_pair
                                      name: GIT_DIR
                                      val: {(DQ ($ Id.VSub_DollarName name) <'/.git'>)}
                                      spids: [5583]
                                    )
                                  ]
                                  do_fork: T
                                )
                              ]
                              negated: T
                              stderr_indices: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'missing_dst='>
                                      name: missing_dst
                                    )
                                  op: assign_op.Equal
                                  rhs: {<t>}
                                  spids: [5605]
                                )
                              ]
                              redirects: []
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'display_name='>
                                  name: display_name
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<submodule--helper>} {<relative-path>} 
                                        {(DQ ($ Id.VSub_DollarName name))} {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [5610]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'total_commits='>
                                  name: total_commits
                                )
                              op: assign_op.Equal
                              rhs: (rhs_word.Empty)
                              spids: [5629]
                            )
                          ]
                          redirects: []
                        )
                        (command.Case
                          to_match: 
                            {
                              (DQ ($ Id.VSub_DollarName missing_src) <','> 
                                ($ Id.VSub_DollarName missing_dst)
                              )
                            }
                          arms: [
                            (case_arm
                              pat_list: [{<t> <Id.Lit_Comma ','>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'errmsg='>
                                          name: errmsg
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ 
                                            (command_sub
                                              left_token: <Id.Left_DollarParen '$('>
                                              child: 
                                                (C {<eval_gettext>} 
                                                  {
                                                    (DQ <'  Warn: '> 
                                                      (word_part.EscapedLiteral
                                                        token: <Id.Lit_EscapedChar '\\$'>
                                                        ch: '$'
                                                      ) <'display_name doesn\'t contain commit '> 
                                                      (word_part.EscapedLiteral
                                                        token: <Id.Lit_EscapedChar '\\$'>
                                                        ch: '$'
                                                      ) <sha1_src>
                                                    )
                                                  }
                                                )
                                              right: <Id.Eof_RParen _>
                                            )
                                          )
                                        }
                                      spids: [5648]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [5643 5645 5664 -1]
                            )
                            (case_arm
                              pat_list: [{<Id.Lit_Comma ','> <t>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'errmsg='>
                                          name: errmsg
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ 
                                            (command_sub
                                              left_token: <Id.Left_DollarParen '$('>
                                              child: 
                                                (C {<eval_gettext>} 
                                                  {
                                                    (DQ <'  Warn: '> 
                                                      (word_part.EscapedLiteral
                                                        token: <Id.Lit_EscapedChar '\\$'>
                                                        ch: '$'
                                                      ) <'display_name doesn\'t contain commit '> 
                                                      (word_part.EscapedLiteral
                                                        token: <Id.Lit_EscapedChar '\\$'>
                                                        ch: '$'
                                                      ) <sha1_dst>
                                                    )
                                                  }
                                                )
                                              right: <Id.Eof_RParen _>
                                            )
                                          )
                                        }
                                      spids: [5672]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [5667 5669 5688 -1]
                            )
                            (case_arm
                              pat_list: [{<t> <Id.Lit_Comma ','> <t>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'errmsg='>
                                          name: errmsg
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ 
                                            (command_sub
                                              left_token: <Id.Left_DollarParen '$('>
                                              child: 
                                                (C {<eval_gettext>} 
                                                  {
                                                    (DQ <'  Warn: '> 
                                                      (word_part.EscapedLiteral
                                                        token: <Id.Lit_EscapedChar '\\$'>
                                                        ch: '$'
                                                      ) <'display_name doesn\'t contain commits '> 
                                                      (word_part.EscapedLiteral
                                                        token: <Id.Lit_EscapedChar '\\$'>
                                                        ch: '$'
                                                      ) <'sha1_src and '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <sha1_dst>
                                                    )
                                                  }
                                                )
                                              right: <Id.Eof_RParen _>
                                            )
                                          )
                                        }
                                      spids: [5697]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [5691 5694 5715 -1]
                            )
                            (case_arm
                              pat_list: [{<Id.Lit_Star '*'>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'errmsg='>
                                          name: errmsg
                                        )
                                      op: assign_op.Equal
                                      rhs: (rhs_word.Empty)
                                      spids: [5722]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'total_commits='>
                                          name: total_commits
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (command.CommandList
                                                children: [
                                                  (command.If
                                                    arms: [
                                                      (if_arm
                                                        cond: 
                                                          (condition.Shell
                                                            commands: [
                                                              (command.AndOr
                                                                ops: [Id.Op_DAmp]
                                                                children: [
                                                                  (C {<test>} 
                                                                    {($ Id.VSub_DollarName mod_src)} {<Id.Lit_Equals '='>} {<160000>}
                                                                  )
                                                                  (C {<test>} 
                                                                    {($ Id.VSub_DollarName mod_dst)} {<Id.Lit_Equals '='>} {<160000>}
                                                                  )
                                                                ]
                                                              )
                                                            ]
                                                          )
                                                        action: [
                                                          (command.ShAssignment
                                                            pairs: [
                                                              (assign_pair
                                                                lhs: 
                                                                  (sh_lhs_expr.Name
                                                                    left: <Id.Lit_VarLike 'range='>
                                                                    name: range
                                                                  )
                                                                op: assign_op.Equal
                                                                rhs: 
                                                                  {
                                                                    (DQ 
                                                                      ($ Id.VSub_DollarName sha1_src) <...> ($ Id.VSub_DollarName sha1_dst)
                                                                    )
                                                                  }
                                                                spids: [5753]
                                                              )
                                                            ]
                                                            redirects: []
                                                          )
                                                        ]
                                                        spids: [5729 5750]
                                                      )
                                                      (if_arm
                                                        cond: 
                                                          (condition.Shell
                                                            commands: [
                                                              (C {<test>} 
                                                                {($ Id.VSub_DollarName mod_src)} {<Id.Lit_Equals '='>} {<160000>}
                                                              )
                                                            ]
                                                          )
                                                        action: [
                                                          (command.ShAssignment
                                                            pairs: [
                                                              (assign_pair
                                                                lhs: 
                                                                  (sh_lhs_expr.Name
                                                                    left: <Id.Lit_VarLike 'range='>
                                                                    name: range
                                                                  )
                                                                op: assign_op.Equal
                                                                rhs: {($ Id.VSub_DollarName sha1_src)}
                                                                spids: [5775]
                                                              )
                                                            ]
                                                            redirects: []
                                                          )
                                                        ]
                                                        spids: [5761 5772]
                                                      )
                                                    ]
                                                    else_action: [
                                                      (command.ShAssignment
                                                        pairs: [
                                                          (assign_pair
                                                            lhs: 
                                                              (sh_lhs_expr.Name
                                                                left: <Id.Lit_VarLike 'range='>
                                                                name: range
                                                              )
                                                            op: assign_op.Equal
                                                            rhs: {($ Id.VSub_DollarName sha1_dst)}
                                                            spids: [5782]
                                                          )
                                                        ]
                                                        redirects: []
                                                      )
                                                    ]
                                                    redirects: []
                                                  )
                                                  (command.Pipeline
                                                    children: [
                                                      (command.Simple
                                                        words: [
                                                          {<git>}
                                                          {<rev-list>}
                                                          {<--first-parent>}
                                                          {($ Id.VSub_DollarName range)}
                                                          {<-->}
                                                        ]
                                                        redirects: []
                                                        more_env: [
                                                          (env_pair
                                                            name: GIT_DIR
                                                            val: 
                                                              {
                                                                (DQ ($ Id.VSub_DollarName name) 
                                                                  <'/.git'>
                                                                )
                                                              }
                                                            spids: [5789]
                                                          )
                                                        ]
                                                        do_fork: T
                                                      )
                                                      (C {<wc>} {<-l>})
                                                    ]
                                                    negated: F
                                                    stderr_indices: []
                                                  )
                                                ]
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [5725]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'total_commits='>
                                          name: total_commits
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ <' ('> 
                                            (word_part.ArithSub
                                              anode: 
                                                (arith_expr.Binary
                                                  op_id: Id.Arith_Plus
                                                  left: {($ Id.VSub_DollarName total_commits)}
                                                  right: {<Id.Lit_Digits 0>}
                                                )
                                            ) <')'>
                                          )
                                        }
                                      spids: [5817]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [5718 5719 5832 -1]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'sha1_abbr_src='>
                                  name: sha1_abbr_src
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Pipeline
                                        children: [
                                          (C {<echo>} {($ Id.VSub_DollarName sha1_src)})
                                          (C {<cut>} {<-c1-7>})
                                        ]
                                        negated: F
                                        stderr_indices: []
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [5839]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'sha1_abbr_dst='>
                                  name: sha1_abbr_dst
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Pipeline
                                        children: [
                                          (C {<echo>} {($ Id.VSub_DollarName sha1_dst)})
                                          (C {<cut>} {<-c1-7>})
                                        ]
                                        negated: F
                                        stderr_indices: []
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [5853]
                            )
                          ]
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (C {<test>} {($ Id.VSub_DollarName status)} {<Id.Lit_Equals '='>} 
                                      {<T>}
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'blob='> name:blob)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ 
                                            (command_sub
                                              left_token: <Id.Left_DollarParen '$('>
                                              child: (C {<gettext>} {(DQ <blob>)})
                                              right: <Id.Eof_RParen _>
                                            )
                                          )
                                        }
                                      spids: [5881]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'submodule='>
                                          name: submodule
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ 
                                            (command_sub
                                              left_token: <Id.Left_DollarParen '$('>
                                              child: (C {<gettext>} {(DQ <submodule>)})
                                              right: <Id.Eof_RParen _>
                                            )
                                          )
                                        }
                                      spids: [5893]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (C {<test>} {($ Id.VSub_DollarName mod_dst)} 
                                              {<Id.Lit_Equals '='>} {<160000>}
                                            )
                                          ]
                                        )
                                      action: [
                                        (C {<echo>} 
                                          {
                                            (DQ <'* '> ($ Id.VSub_DollarName display_name) <' '> 
                                              ($ Id.VSub_DollarName sha1_abbr_src) <'('> ($ Id.VSub_DollarName blob) <')->'> ($ Id.VSub_DollarName sha1_abbr_dst) <'('> 
                                              ($ Id.VSub_DollarName submodule) <')'> ($ Id.VSub_DollarName total_commits) <':'>
                                            )
                                          }
                                        )
                                      ]
                                      spids: [5905 5916]
                                    )
                                  ]
                                  else_action: [
                                    (C {<echo>} 
                                      {
                                        (DQ <'* '> ($ Id.VSub_DollarName display_name) <' '> 
                                          ($ Id.VSub_DollarName sha1_abbr_src) <'('> ($ Id.VSub_DollarName submodule) <')->'> ($ Id.VSub_DollarName sha1_abbr_dst) <'('> 
                                          ($ Id.VSub_DollarName blob) <')'> ($ Id.VSub_DollarName total_commits) <':'>
                                        )
                                      }
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [5867 5878]
                            )
                          ]
                          else_action: [
                            (C {<echo>} 
                              {
                                (DQ <'* '> ($ Id.VSub_DollarName display_name) <' '> 
                                  ($ Id.VSub_DollarName sha1_abbr_src) <...> ($ Id.VSub_DollarName sha1_abbr_dst) ($ Id.VSub_DollarName total_commits) <':'>
                                )
                              }
                            )
                          ]
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName errmsg))})]
                                )
                              action: [
                                (command.AndOr
                                  ops: [Id.Op_DAmp]
                                  children: [
                                    (C {<test>} {($ Id.VSub_DollarName mod_dst)} {<Id.Lit_Equals '='>} 
                                      {<160000>}
                                    )
                                    (C {<echo>} {(DQ ($ Id.VSub_DollarName errmsg))})
                                  ]
                                )
                              ]
                              spids: [5983 5994]
                            )
                          ]
                          else_action: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.AndOr
                                          ops: [Id.Op_DAmp]
                                          children: [
                                            (C {<test>} {($ Id.VSub_DollarName mod_src)} 
                                              {<Id.Lit_Equals '='>} {<160000>}
                                            )
                                            (C {<test>} {($ Id.VSub_DollarName mod_dst)} 
                                              {<Id.Lit_Equals '='>} {<160000>}
                                            )
                                          ]
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'limit='>
                                              name: limit
                                            )
                                          op: assign_op.Equal
                                          rhs: (rhs_word.Empty)
                                          spids: [6049]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.AndOr
                                      ops: [Id.Op_DAmp]
                                      children: [
                                        (C {<test>} {($ Id.VSub_DollarName summary_limit)} {<-gt>} {<0>})
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: 
                                                (sh_lhs_expr.Name
                                                  left: <Id.Lit_VarLike 'limit='>
                                                  name: limit
                                                )
                                              op: assign_op.Equal
                                              rhs: {(DQ <-> ($ Id.VSub_DollarName summary_limit))}
                                              spids: [6062]
                                            )
                                          ]
                                          redirects: []
                                        )
                                      ]
                                    )
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<log>}
                                        {($ Id.VSub_DollarName limit)}
                                        {<--pretty> <Id.Lit_Equals '='> (SQ <'format:  %m %s'>)}
                                        {<--first-parent>}
                                        {($ Id.VSub_DollarName sha1_src) <Id.Lit_TDot ...> 
                                          ($ Id.VSub_DollarName sha1_dst)
                                        }
                                      ]
                                      redirects: []
                                      more_env: [
                                        (env_pair
                                          name: GIT_DIR
                                          val: {(DQ ($ Id.VSub_DollarName name) <'/.git'>)}
                                          spids: [6069]
                                        )
                                      ]
                                      do_fork: T
                                    )
                                  ]
                                  spids: [6025 6046]
                                )
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {($ Id.VSub_DollarName mod_dst)} 
                                          {<Id.Lit_Equals '='>} {<160000>}
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<log>}
                                        {<--pretty> <Id.Lit_Equals '='> (SQ <'format:  > %s'>)}
                                        {<-1>}
                                        {($ Id.VSub_DollarName sha1_dst)}
                                      ]
                                      redirects: []
                                      more_env: [
                                        (env_pair
                                          name: GIT_DIR
                                          val: {(DQ ($ Id.VSub_DollarName name) <'/.git'>)}
                                          spids: [6112]
                                        )
                                      ]
                                      do_fork: T
                                    )
                                  ]
                                  spids: [6098 6109]
                                )
                              ]
                              else_action: [
                                (command.Simple
                                  words: [
                                    {<git>}
                                    {<log>}
                                    {<--pretty> <Id.Lit_Equals '='> (SQ <'format:  < %s'>)}
                                    {<-1>}
                                    {($ Id.VSub_DollarName sha1_src)}
                                  ]
                                  redirects: []
                                  more_env: [
                                    (env_pair
                                      name: GIT_DIR
                                      val: {(DQ ($ Id.VSub_DollarName name) <'/.git'>)}
                                      spids: [6138]
                                    )
                                  ]
                                  do_fork: T
                                )
                              ]
                              redirects: []
                            )
                            (C {<echo>})
                          ]
                          redirects: []
                        )
                        (C {<echo>})
                      ]
                    )
                  redirects: []
                )
              ]
              negated: F
              stderr_indices: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_status
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [6247]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [6241 6244 6251 -1]
                        )
                        (case_arm
                          pat_list: [{<--cached>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cached='> name:cached)
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [6258]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [6254 6255 6262 -1]
                        )
                        (case_arm
                          pat_list: [{<--recursive>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'recursive='>
                                      name: recursive
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [6269]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [6265 6266 6273 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [6276 6277 6286 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [6289 6291 6297 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [6300 6301 6307 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (command.Pipeline
              children: [
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<submodule--helper>} {<list>} {<--prefix>} 
                          {(DQ ($ Id.VSub_DollarName wt_prefix))} {(DQ ($ Id.VSub_At '@'))}
                        )
                        (C {<echo>} {(DQ <'#unmatched'>)} {($ Id.VSub_QMark '?')})
                      ]
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
                (command.WhileUntil
                  keyword: <Id.KW_While while>
                  cond: 
                    (condition.Shell
                      commands: [(C {<read>} {<mode>} {<sha1>} {<stage>} {<sm_path>})]
                    )
                  body: 
                    (command.DoGroup
                      children: [
                        (C {<die_if_unmatched>} {(DQ ($ Id.VSub_DollarName mode))} 
                          {(DQ ($ Id.VSub_DollarName sha1))}
                        )
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'name='> name:name)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<git>} {<submodule--helper>} {<name>} 
                                            {(DQ ($ Id.VSub_DollarName sm_path))}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [6383]
                                )
                              ]
                              redirects: []
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'url='> name:url)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<config>} 
                                        {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.url>}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [6401]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'displaypath='>
                                  name: displaypath
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<submodule--helper>} {<relative-path>} 
                                        {
                                          (DQ ($ Id.VSub_DollarName prefix) 
                                            ($ Id.VSub_DollarName sm_path)
                                          )
                                        } {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [6415]
                            )
                          ]
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (C {<test>} {(DQ ($ Id.VSub_DollarName stage))} 
                                      {<Id.Lit_Equals '='>} {<U>}
                                    )
                                  ]
                                )
                              action: [
                                (C {<say>} 
                                  {
                                    (DQ <U> ($ Id.VSub_DollarName sha1) <' '> 
                                      ($ Id.VSub_DollarName displaypath)
                                    )
                                  }
                                )
                                (command.ControlFlow
                                  token: <Id.ControlFlow_Continue continue>
                                )
                              ]
                              spids: [6434 6447]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.AndOr
                                      ops: [Id.Op_DPipe]
                                      children: [
                                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName url))})
                                        (BraceGroup
                                          left: <Id.Lit_LBrace '{'>
                                          children: [
                                            (command.AndOr
                                              ops: [Id.Op_DAmp]
                                              children: [
                                                (command.Pipeline
                                                  children: [
                                                    (C {<test>} {<-d>} 
                                                      {(DQ ($ Id.VSub_DollarName sm_path)) <'/.git'>}
                                                    )
                                                  ]
                                                  negated: T
                                                  stderr_indices: []
                                                )
                                                (command.Pipeline
                                                  children: [
                                                    (C {<test>} {<-f>} 
                                                      {(DQ ($ Id.VSub_DollarName sm_path)) <'/.git'>}
                                                    )
                                                  ]
                                                  negated: T
                                                  stderr_indices: []
                                                )
                                              ]
                                            )
                                          ]
                                          redirects: []
                                          right: <Id.Lit_RBrace '}'>
                                        )
                                      ]
                                    )
                                  ]
                                )
                              action: [
                                (C {<say>} 
                                  {
                                    (DQ <-> ($ Id.VSub_DollarName sha1) <' '> 
                                      ($ Id.VSub_DollarName displaypath)
                                    )
                                  }
                                )
                                (command.Sentence
                                  child: 
                                    (command.ControlFlow
                                      token: <Id.ControlFlow_Continue continue>
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                              spids: [6466 6511]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (C {<git>} {<diff-files>} 
                                      {<--ignore-submodules> <Id.Lit_Equals '='> <dirty>} {<--quiet>} {<-->} {(DQ ($ Id.VSub_DollarName sm_path))}
                                    )
                                  ]
                                )
                              action: [
                                (C {<set_name_rev>} {(DQ ($ Id.VSub_DollarName sm_path))} 
                                  {(DQ ($ Id.VSub_DollarName sha1))}
                                )
                                (C {<say>} 
                                  {
                                    (DQ <' '> ($ Id.VSub_DollarName sha1) <' '> 
                                      ($ Id.VSub_DollarName displaypath) ($ Id.VSub_DollarName revname)
                                    )
                                  }
                                )
                              ]
                              spids: [6531 6550]
                            )
                          ]
                          else_action: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName cached))})
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'sha1='>
                                              name: sha1
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.CommandList
                                                    children: [
                                                      (command.Sentence
                                                        child: (C {<sanitize_submodule_env>})
                                                        terminator: <Id.Op_Semi _>
                                                      )
                                                      (command.AndOr
                                                        ops: [Id.Op_DAmp]
                                                        children: [
                                                          (C {<cd>} 
                                                            {(DQ ($ Id.VSub_DollarName sm_path))}
                                                          )
                                                          (C {<git>} {<rev-parse>} {<--verify>} {<HEAD>})
                                                        ]
                                                      )
                                                    ]
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [6592]
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [6578 6589]
                                )
                              ]
                              else_action: []
                              redirects: []
                            )
                            (C {<set_name_rev>} {(DQ ($ Id.VSub_DollarName sm_path))} 
                              {(DQ ($ Id.VSub_DollarName sha1))}
                            )
                            (C {<say>} 
                              {
                                (DQ <'+'> ($ Id.VSub_DollarName sha1) <' '> 
                                  ($ Id.VSub_DollarName displaypath) ($ Id.VSub_DollarName revname)
                                )
                              }
                            )
                          ]
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName recursive))})]
                                )
                              action: [
                                (command.AndOr
                                  ops: [Id.Op_DPipe]
                                  children: [
                                    (command.Subshell
                                      child: 
                                        (command.CommandList
                                          children: [
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'prefix='>
                                                      name: prefix
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: {(DQ ($ Id.VSub_DollarName displaypath) <'/'>)}
                                                  spids: [6661]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (C {<sanitize_submodule_env>})
                                            (command.ShAssignment
                                              pairs: [
                                                (assign_pair
                                                  lhs: 
                                                    (sh_lhs_expr.Name
                                                      left: <Id.Lit_VarLike 'wt_prefix='>
                                                      name: wt_prefix
                                                    )
                                                  op: assign_op.Equal
                                                  rhs: (rhs_word.Empty)
                                                  spids: [6671]
                                                )
                                              ]
                                              redirects: []
                                            )
                                            (command.AndOr
                                              ops: [Id.Op_DAmp]
                                              children: [
                                                (C {<cd>} {(DQ ($ Id.VSub_DollarName sm_path))})
                                                (C {<eval>} {<cmd_status>})
                                              ]
                                            )
                                          ]
                                        )
                                      redirects: []
                                    )
                                    (C {<die>} 
                                      {
                                        (DQ 
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<eval_gettext>} 
                                                {
                                                  (DQ <'Failed to recurse into submodule path \''> 
                                                    (word_part.EscapedLiteral
                                                      token: <Id.Lit_EscapedChar '\\$'>
                                                      ch: '$'
                                                    ) <'sm_path\''>
                                                  )
                                                }
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              ]
                              spids: [6644 6655]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                      ]
                    )
                  redirects: []
                )
              ]
              negated: F
              stderr_indices: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cmd_sync
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<test>} {($ Id.VSub_Pound '#')} {<-ne>} {<0>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<-q>} {<--quiet>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_QUIET='>
                                      name: GIT_QUIET
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [6766]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [6760 6763 6773 -1]
                        )
                        (case_arm
                          pat_list: [{<--recursive>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'recursive='>
                                      name: recursive
                                    )
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [6780]
                                )
                              ]
                              redirects: []
                            )
                            (C {<shift>})
                          ]
                          spids: [6776 6777 6787 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [6790 6791 6800 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [6803 6805 6811 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [6814 6815 6821 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
            (C {<cd_to_toplevel>})
            (command.Pipeline
              children: [
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<submodule--helper>} {<list>} {<--prefix>} 
                          {(DQ ($ Id.VSub_DollarName wt_prefix))} {(DQ ($ Id.VSub_At '@'))}
                        )
                        (C {<echo>} {(DQ <'#unmatched'>)} {($ Id.VSub_QMark '?')})
                      ]
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
                (command.WhileUntil
                  keyword: <Id.KW_While while>
                  cond: 
                    (condition.Shell
                      commands: [(C {<read>} {<mode>} {<sha1>} {<stage>} {<sm_path>})]
                    )
                  body: 
                    (command.DoGroup
                      children: [
                        (C {<die_if_unmatched>} {(DQ ($ Id.VSub_DollarName mode))} 
                          {(DQ ($ Id.VSub_DollarName sha1))}
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'name='> name:name)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<submodule--helper>} {<name>} 
                                        {(DQ ($ Id.VSub_DollarName sm_path))}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [6896]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'url='> name:url)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<config>} {<-f>} {<.gitmodules>} {<--get>} 
                                        {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.url>}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [6910]
                            )
                          ]
                          redirects: []
                        )
                        (command.Case
                          to_match: {(DQ ($ Id.VSub_DollarName url))}
                          arms: [
                            (case_arm
                              pat_list: [{<'./'> <Id.Lit_Star '*'>} {<'../'> <Id.Lit_Star '*'>}]
                              action: [
                                (command.AndOr
                                  ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DPipe]
                                  children: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'up_path='>
                                              name: up_path
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (DQ 
                                                (command_sub
                                                  left_token: <Id.Left_DollarParen '$('>
                                                  child: 
                                                    (command.Pipeline
                                                      children: [
                                                        (C {<printf>} {(SQ <'%s\\n'>)} 
                                                          {(DQ ($ Id.VSub_DollarName sm_path))}
                                                        )
                                                        (C {<sed>} {(DQ <'s/[^/][^/]*/../g'>)})
                                                      ]
                                                      negated: F
                                                      stderr_indices: []
                                                    )
                                                  right: <Id.Eof_RParen _>
                                                )
                                              )
                                            }
                                          spids: [6960]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'up_path='>
                                              name: up_path
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (braced_var_sub
                                                left: <Id.Left_DollarBrace '${'>
                                                token: <Id.VSub_Name up_path>
                                                var_name: up_path
                                                suffix_op: 
                                                  (suffix_op.Unary
                                                    op: <Id.VOp1_Percent '%'>
                                                    arg_word: {<Id.Lit_Slash '/'>}
                                                  )
                                                right: <Id.Right_DollarBrace '}'>
                                              ) <'/'>
                                            }
                                          spids: [6990]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'sub_origin_url='>
                                              name: sub_origin_url
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<git>} {<submodule--helper>} 
                                                    {<resolve-relative-url>} {(DQ ($ Id.VSub_DollarName url))} {(DQ ($ Id.VSub_DollarName up_path))}
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [7005]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'super_config_url='>
                                              name: super_config_url
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<git>} {<submodule--helper>} 
                                                    {<resolve-relative-url>} {(DQ ($ Id.VSub_DollarName url))}
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [7029]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.ControlFlow
                                      token: <Id.ControlFlow_Exit exit>
                                    )
                                  ]
                                )
                              ]
                              spids: [6944 6949 7047 -1]
                            )
                            (case_arm
                              pat_list: [{<Id.Lit_Star '*'>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'sub_origin_url='>
                                          name: sub_origin_url
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ ($ Id.VSub_DollarName url))}
                                      spids: [7054]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'super_config_url='>
                                          name: super_config_url
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ ($ Id.VSub_DollarName url))}
                                      spids: [7060]
                                    )
                                  ]
                                  redirects: []
                                )
                              ]
                              spids: [7050 7051 7066 -1]
                            )
                          ]
                          redirects: []
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<config>}
                                        {(DQ <submodule.> ($ Id.VSub_DollarName name) <.url>)}
                                      ]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '>'>
                                          loc: (redir_loc.Fd fd:1)
                                          arg: {<'/dev/null'>}
                                        )
                                        (redir
                                          op: <Id.Redir_Great '2>'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      more_env: []
                                      do_fork: T
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'displaypath='>
                                          name: displaypath
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (C {<git>} {<submodule--helper>} {<relative-path>} 
                                                {
                                                  (DQ ($ Id.VSub_DollarName prefix) 
                                                    ($ Id.VSub_DollarName sm_path)
                                                  )
                                                } {(DQ ($ Id.VSub_DollarName wt_prefix))}
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [7095]
                                    )
                                  ]
                                  redirects: []
                                )
                                (C {<say>} 
                                  {
                                    (DQ 
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<eval_gettext>} 
                                            {
                                              (DQ <'Synchronizing submodule url for \''> 
                                                (word_part.EscapedLiteral
                                                  token: <Id.Lit_EscapedChar '\\$'>
                                                  ch: '$'
                                                ) <'displaypath\''>
                                              )
                                            }
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    )
                                  }
                                )
                                (C {<git>} {<config>} 
                                  {<submodule.> (DQ ($ Id.VSub_DollarName name)) <.url>} {(DQ ($ Id.VSub_DollarName super_config_url))}
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (C {<test>} {<-e>} 
                                              {(DQ ($ Id.VSub_DollarName sm_path)) <'/.git'>}
                                            )
                                          ]
                                        )
                                      action: [
                                        (command.Subshell
                                          child: 
                                            (command.CommandList
                                              children: [
                                                (C {<sanitize_submodule_env>})
                                                (C {<cd>} {(DQ ($ Id.VSub_DollarName sm_path))})
                                                (command.ShAssignment
                                                  pairs: [
                                                    (assign_pair
                                                      lhs: 
                                                        (sh_lhs_expr.Name
                                                          left: <Id.Lit_VarLike 'remote='>
                                                          name: remote
                                                        )
                                                      op: assign_op.Equal
                                                      rhs: 
                                                        {
                                                          (command_sub
                                                            left_token: <Id.Left_DollarParen '$('>
                                                            child: (C {<get_default_remote>})
                                                            right: <Id.Eof_RParen _>
                                                          )
                                                        }
                                                      spids: [7173]
                                                    )
                                                  ]
                                                  redirects: []
                                                )
                                                (C {<git>} {<config>} 
                                                  {<remote.> (DQ ($ Id.VSub_DollarName remote)) <.url>} {(DQ ($ Id.VSub_DollarName sub_origin_url))}
                                                )
                                                (command.If
                                                  arms: [
                                                    (if_arm
                                                      cond: 
                                                        (condition.Shell
                                                          commands: [
                                                            (C {<test>} {<-n>} 
                                                              {(DQ ($ Id.VSub_DollarName recursive))}
                                                            )
                                                          ]
                                                        )
                                                      action: [
                                                        (command.ShAssignment
                                                          pairs: [
                                                            (assign_pair
                                                              lhs: 
                                                                (sh_lhs_expr.Name
                                                                  left: <Id.Lit_VarLike 'prefix='>
                                                                  name: prefix
                                                                )
                                                              op: assign_op.Equal
                                                              rhs: 
                                                                {
                                                                  (DQ ($ Id.VSub_DollarName prefix) 
                                                                    ($ Id.VSub_DollarName sm_path) <'/'>
                                                                  )
                                                                }
                                                              spids: [7209]
                                                            )
                                                          ]
                                                          redirects: []
                                                        )
                                                        (C {<eval>} {<cmd_sync>})
                                                      ]
                                                      spids: [7195 7206]
                                                    )
                                                  ]
                                                  else_action: []
                                                  redirects: []
                                                )
                                              ]
                                            )
                                          redirects: []
                                        )
                                      ]
                                      spids: [7145 7157]
                                    )
                                  ]
                                  else_action: []
                                  redirects: []
                                )
                              ]
                              spids: [7073 7092]
                            )
                          ]
                          else_action: []
                          redirects: []
                        )
                      ]
                    )
                  redirects: []
                )
              ]
              negated: F
              stderr_indices: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {($ Id.VSub_Pound '#')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>})
                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName command))})
              ]
            )
          ]
        )
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_Number 1))}
              arms: [
                (case_arm
                  pat_list: [
                    {<add>}
                    {<foreach>}
                    {<init>}
                    {<deinit>}
                    {<update>}
                    {<status>}
                    {<summary>}
                    {<sync>}
                  ]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'command='> name:command)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_Number 1)}
                          spids: [7320]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [7288 7317 7324 -1]
                )
                (case_arm
                  pat_list: [{<-q>} {<--quiet>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'GIT_QUIET='> name:GIT_QUIET)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [7333]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [7327 7330 7337 -1]
                )
                (case_arm
                  pat_list: [{<-b>} {<--branch>}]
                  action: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 2))}
                      arms: [
                        (case_arm
                          pat_list: [{(SQ )}]
                          action: [(C {<usage>})]
                          spids: [7355 7357 7363 -1]
                        )
                      ]
                      redirects: []
                    )
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'branch='> name:branch)
                              op: assign_op.Equal
                              rhs: {(DQ ($ Id.VSub_Number 2))}
                              spids: [7369]
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (C {<shift>})
                  ]
                  spids: [7340 7343 7378 -1]
                )
                (case_arm
                  pat_list: [{<--cached>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cached='> name:cached)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number 1))}
                          spids: [7385]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [7381 7382 7391 -1]
                )
                (case_arm
                  pat_list: [{<-->}]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                  spids: [7394 7395 7401 -1]
                )
                (case_arm
                  pat_list: [{<-> <Id.Lit_Star '*'>}]
                  action: [(C {<usage>})]
                  spids: [7404 7406 7412 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                  spids: [7415 7416 7422 -1]
                )
              ]
              redirects: []
            )
            (C {<shift>})
          ]
        )
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName command))})]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {($ Id.VSub_Pound '#')} {<Id.Lit_Equals '='>} {<0>})]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'command='> name:command)
                          op: assign_op.Equal
                          rhs: {<status>}
                          spids: [7463]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [7449 7460]
                )
              ]
              else_action: [(C {<usage>})]
              redirects: []
            )
          ]
          spids: [7436 7446]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.AndOr
                  ops: [Id.Op_DAmp]
                  children: [
                    (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName branch))})
                    (C {<test>} {(DQ ($ Id.VSub_DollarName command))} 
                      {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<add>}
                    )
                  ]
                )
              ]
            )
          action: [(C {<usage>})]
          spids: [7481 7504]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.AndOr
                  ops: [Id.Op_DAmp Id.Op_DAmp]
                  children: [
                    (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName cached))})
                    (C {<test>} {(DQ ($ Id.VSub_DollarName command))} 
                      {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<status>}
                    )
                    (C {<test>} {(DQ ($ Id.VSub_DollarName command))} 
                      {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<summary>}
                    )
                  ]
                )
              ]
            )
          action: [(C {<usage>})]
          spids: [7515 7551]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {(DQ <cmd_> ($ Id.VSub_DollarName command))} {(DQ ($ Id.VSub_At '@'))})
  ]
)