(command.CommandList
  children: [
    (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: [13]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: 
            (sh_lhs_expr.Name
              left: <Id.Lit_VarLike 'OPTIONS_KEEPDASHDASH='>
              name: OPTIONS_KEEPDASHDASH
            )
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [16]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'OPTIONS_STUCKLONG='> name:OPTIONS_STUCKLONG)
          op: assign_op.Equal
          rhs: {<t>}
          spids: [18]
        )
      ]
      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: 
            {
              (DQ 
                <
'git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]\n'
                > <'git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]\n'> 
                <'git-rebase --continue | --abort | --skip | --edit-todo\n'> <'--\n'> <' Available options are\n'> 
                <'v,verbose!         display a diffstat of what changed upstream\n'> <'q,quiet!           be quiet. implies --no-stat\n'> 
                <'autostash          automatically stash/stash pop before and after\n'> <'fork-point         use \'merge-base --fork-point\' to refine upstream\n'> 
                <'onto=!             rebase onto given branch instead of upstream\n'> <'p,preserve-merges! try to recreate merges instead of ignoring them\n'> 
                <'s,strategy=!       use the given merge strategy\n'> <'no-ff!             cherry-pick all commits, even if unchanged\n'> 
                <'m,merge!           use merging strategies to rebase\n'> <'i,interactive!     let the user edit the list of commits to rebase\n'> 
                <'x,exec=!           add exec lines after each commit of the editable list\n'> <'k,keep-empty\t   preserve empty commits during rebase\n'> 
                <'f,force-rebase!    force rebase even if branch is up to date\n'> <'X,strategy-option=! pass the argument through to the merge strategy\n'> 
                <'stat!              display a diffstat of what changed upstream\n'> <'n,no-stat!         do not show diffstat of what changed upstream\n'> 
                <'verify             allow pre-rebase hook to run\n'> <'rerere-autoupdate  allow rerere to update index with resolved conflicts\n'> 
                <'root!              rebase all reachable commits up to the root(s)\n'> <'autosquash         move commits that begin with squash!/fixup! under -i\n'> 
                <'committer-date-is-author-date! passed to \'git am\'\n'> <'ignore-date!       passed to \'git am\'\n'> <'whitespace=!       passed to \'git apply\'\n'> 
                <'ignore-whitespace! passed to \'git apply\'\n'> <'C=!                passed to \'git apply\'\n'> <'S,gpg-sign?        GPG-sign commits\n'> 
                <' Actions:\n'> <'continue!          continue\n'> <'abort!             abort and check out the original branch\n'> 
                <'skip!              skip current patch and continue\n'> <'edit-todo!         edit the todo list during an interactive rebase\n'>
              )
            }
          spids: [21]
        )
      ]
      redirects: []
    )
    (C {<.>} {<git-sh-setup>})
    (C {<set_reflog_action>} {<rebase>})
    (C {<require_work_tree_exists>})
    (C {<cd_to_toplevel>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LF='> name:LF)
          op: assign_op.Equal
          rhs: {(SQ <'\n'>)}
          spids: [75]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: 
            (sh_lhs_expr.Name
              left: <Id.Lit_VarLike 'ok_to_skip_pre_rebase='>
              name: ok_to_skip_pre_rebase
            )
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [80]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'resolvemsg='> name:resolvemsg)
          op: assign_op.Equal
          rhs: 
            {
              (DQ <'\n'> 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (C {<gettext>} 
                      {
                        (SQ <'When you have resolved this problem, run "git rebase --continue".\n'> 
                          <'If you prefer to skip this patch, run "git rebase --skip" instead.\n'> <'To check out the original branch and stop rebasing, run "git rebase --abort".'>
                        )
                      }
                    )
                  right: <Id.Eof_RParen _>
                ) <'\n'>
              )
            }
          spids: [82]
        )
      ]
      redirects: []
    )
    (C {<unset>} {<onto>})
    (C {<unset>} {<restrict_revision>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [105]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [107]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy_opts='> name:strategy_opts)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [109]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'do_merge='> name:do_merge)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [111]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'merge_dir='> name:merge_dir)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName GIT_DIR)) <'/rebase-merge'>}
          spids: [113]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'apply_dir='> name:apply_dir)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName GIT_DIR)) <'/rebase-apply'>}
          spids: [119]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'verbose='> name:verbose)
          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 'diffstat='> name:diffstat)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [127]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<test>} 
          {
            (DQ 
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: (C {<git>} {<config>} {<--bool>} {<rebase.stat>})
                right: <Id.Eof_RParen _>
              )
            )
          } {<Id.Lit_Equals '='>} {<true>}
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diffstat='> name:diffstat)
              op: assign_op.Equal
              rhs: {<t>}
              spids: [149]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autostash='> name:autostash)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<config>} {<--bool>} {<rebase.autostash>})
                        (C {<echo>} {<false>})
                      ]
                    )
                  right: <Id.Eof_RParen _>
                )
              )
            }
          spids: [152]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'fork_point='> name:fork_point)
          op: assign_op.Equal
          rhs: {<auto>}
          spids: [171]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'git_am_opt='> name:git_am_opt)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [174]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rebase_root='> name:rebase_root)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [176]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'force_rebase='> name:force_rebase)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [178]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: 
            (sh_lhs_expr.Name
              left: <Id.Lit_VarLike 'allow_rerere_autoupdate='>
              name: allow_rerere_autoupdate
            )
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [180]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'in_progress='> name:in_progress)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [185]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [190]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir='> name:state_dir)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [195]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'action='> name:action)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [200]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'preserve_merges='> name:preserve_merges)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [202]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autosquash='> name:autosquash)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [204]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'keep_empty='> name:keep_empty)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [206]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<test>} 
          {
            (DQ 
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: (C {<git>} {<config>} {<--bool>} {<rebase.autosquash>})
                right: <Id.Eof_RParen _>
              )
            )
          } {<Id.Lit_Equals '='>} {(DQ <true>)}
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autosquash='> name:autosquash)
              op: assign_op.Equal
              rhs: {<t>}
              spids: [230]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Case
      to_match: 
        {
          (DQ 
            (command_sub
              left_token: <Id.Left_DollarParen '$('>
              child: (C {<git>} {<config>} {<--bool>} {<commit.gpgsign>})
              right: <Id.Eof_RParen _>
            )
          )
        }
      arms: [
        (case_arm
          pat_list: [{<true>}]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'gpg_sign_opt='> name:gpg_sign_opt)
                  op: assign_op.Equal
                  rhs: {<-S>}
                  spids: [252]
                )
              ]
              redirects: []
            )
          ]
          spids: [249 250 255 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'gpg_sign_opt='> name:gpg_sign_opt)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [260]
                )
              ]
              redirects: []
            )
          ]
          spids: [257 258 262 -1]
        )
      ]
      redirects: []
    )
    (command.ShFunction
      name: read_basic_state
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
              children: [
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir) <'/head-name'>)})
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir) <'/onto'>)})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head_name='> name:head_name)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/head-name'>})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [299]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onto='> name:onto)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/onto'>})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [312]
                    )
                  ]
                  redirects: []
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/orig-head'>})
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'orig_head='>
                                  name: orig_head
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/orig-head'>})
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [352]
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [337 349]
                    )
                  ]
                  else_action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'orig_head='> name:orig_head)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/head'>})
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [366]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'GIT_QUIET='> name:GIT_QUIET)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/quiet'>})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [382]
                    )
                  ]
                  redirects: []
                )
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/verbose'>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'verbose='> name:verbose)
                      op: assign_op.Equal
                      rhs: {<t>}
                      spids: [406]
                    )
                  ]
                  redirects: []
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/strategy'>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/strategy'>})
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      spids: [421]
                    )
                  ]
                  redirects: []
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/strategy_opts'>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike 'strategy_opts='>
                          name: strategy_opts
                        )
                      op: assign_op.Equal
                      rhs: 
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/strategy_opts'>})
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      spids: [446]
                    )
                  ]
                  redirects: []
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/allow_rerere_autoupdate'>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike 'allow_rerere_autoupdate='>
                          name: allow_rerere_autoupdate
                        )
                      op: assign_op.Equal
                      rhs: 
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (C {<cat>} 
                                  {(DQ ($ Id.VSub_DollarName state_dir)) <'/allow_rerere_autoupdate'>}
                                )
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      spids: [471]
                    )
                  ]
                  redirects: []
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/gpg_sign_opt'>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'gpg_sign_opt='> name:gpg_sign_opt)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir)) <'/gpg_sign_opt'>})
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      spids: [496]
                    )
                  ]
                  redirects: []
                )
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: write_basic_state
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
              children: [
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName head_name))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/head-name'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName onto))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/onto'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName orig_head))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/orig-head'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName GIT_QUIET))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/quiet'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (C {<test>} {<t>} {<Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName verbose))})
                (command.Simple
                  words: [{<Id.Lit_Colon ':'>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/verbose'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName strategy))})
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName strategy))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/strategy'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName strategy_opts))})
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName strategy_opts))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/strategy_opts'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName allow_rerere_autoupdate))})
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName allow_rerere_autoupdate))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/allow_rerere_autoupdate'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName gpg_sign_opt))})
                (command.Simple
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName gpg_sign_opt))}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir)) <'/gpg_sign_opt'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: output
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName verbose))}
              arms: [
                (case_arm
                  pat_list: [{(SQ )}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'output='> name:output)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Simple
                                    words: [{(DQ ($ Id.VSub_At '@'))}]
                                    redirects: [
                                      (redir
                                        op: <Id.Redir_GreatAnd '2>&'>
                                        loc: (redir_loc.Fd fd:2)
                                        arg: {<1>}
                                      )
                                    ]
                                    more_env: []
                                    do_fork: T
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [729]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'status='> name:status)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_QMark '?')}
                          spids: [741]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {($ Id.VSub_DollarName status)} 
                          {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>}
                        )
                        (C {<printf>} {(DQ <'%s'> <Id.Lit_BadBackslash '\\'> <n>)} 
                          {(DQ ($ Id.VSub_DollarName output))}
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {($ Id.VSub_DollarName status)}
                    )
                  ]
                  spids: [724 726 774 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [(C {(DQ ($ Id.VSub_At '@'))})]
                  spids: [777 778 786 -1]
                )
              ]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: move_to_original_branch
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName head_name))}
              arms: [
                (case_arm
                  pat_list: [{<'refs/'> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'message='> name:message)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ <'rebase finished: '> ($ Id.VSub_DollarName head_name) <' onto '> 
                                ($ Id.VSub_DollarName onto)
                              )
                            }
                          spids: [816]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp Id.Op_DPipe]
                      children: [
                        (C {<git>} {<update-ref>} {<-m>} {(DQ ($ Id.VSub_DollarName message))} 
                          {($ Id.VSub_DollarName head_name)} 
                          {
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<git>} {<rev-parse>} {<HEAD>})
                              right: <Id.Eof_RParen _>
                            )
                          } {($ Id.VSub_DollarName orig_head)}
                        )
                        (C {<git>} {<symbolic-ref>} {<-m>} 
                          {(DQ <'rebase finished: returning to '> ($ Id.VSub_DollarName head_name))} {<HEAD>} {($ Id.VSub_DollarName head_name)}
                        )
                        (C {<die>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<eval_gettext>} 
                                    {
                                      (DQ <'Could not move back to '> 
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\$'>
                                          ch: '$'
                                        ) <head_name>
                                      )
                                    }
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            )
                          }
                        )
                      ]
                    )
                  ]
                  spids: [811 813 889 -1]
                )
              ]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: apply_autostash
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName state_dir) <'/autostash'>)})
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'stash_sha1='> name:stash_sha1)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<cat>} {(DQ ($ Id.VSub_DollarName state_dir) <'/autostash'>)})
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [920]
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  words: [{<git>} {<stash>} {<apply>} {($ Id.VSub_DollarName stash_sha1)}]
                                  redirects: [
                                    (redir
                                      op: <Id.Redir_GreatAnd '2>&'>
                                      loc: (redir_loc.Fd fd:2)
                                      arg: {<1>}
                                    )
                                    (redir
                                      op: <Id.Redir_Great '>'>
                                      loc: (redir_loc.Fd fd:1)
                                      arg: {<'/dev/null'>}
                                    )
                                  ]
                                  more_env: []
                                  do_fork: T
                                )
                              ]
                            )
                          action: [
                            (C {<echo>} 
                              {
                                (DQ 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: (C {<gettext>} {(SQ <'Applied autostash.'>)})
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                          spids: [931 948]
                        )
                      ]
                      else_action: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<git>} {<stash>} {<store>} {<-m>} {(DQ <autostash>)} {<-q>} 
                              {($ Id.VSub_DollarName stash_sha1)}
                            )
                            (C {<die>} 
                              {
                                (DQ 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<eval_gettext>} 
                                        {
                                          (DQ <'Cannot store '> 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\$'>
                                              ch: '$'
                                            ) <stash_sha1>
                                          )
                                        }
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                        )
                        (C {<gettext>} 
                          {
                            (SQ <'Applying autostash resulted in conflicts.\n'> 
                              <'Your changes are safe in the stash.\n'> <'You can run "git stash pop" or "git stash drop" at any time.\n'>
                            )
                          }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [905 917]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: finish_rebase
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp]
              children: [
                (C {<apply_autostash>})
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.Sentence
                      child: 
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [(C {<git>} {<gc>} {<--auto>}) (C {<true>})]
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
                (C {<rm>} {<-rf>} {(DQ ($ Id.VSub_DollarName state_dir))})
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: run_specific_rebase
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName interactive_rebase))} 
                              {<Id.Lit_Equals '='>} {<implied>} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'GIT_EDITOR='> name:GIT_EDITOR)
                          op: assign_op.Equal
                          rhs: {<Id.Lit_Colon ':'>}
                          spids: [1086]
                        )
                      ]
                      redirects: []
                    )
                    (C {<export>} {<GIT_EDITOR>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autosquash='> name:autosquash)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1095]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1068 1083]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<.>} {<git-rebase--> ($ Id.VSub_DollarName type)})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ret='> name:ret)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '?')}
                  spids: [1107]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {($ Id.VSub_DollarName ret)} {<-eq>} {<0>})]
                    )
                  action: [(C {<finish_rebase>})]
                  spids: [1111 1122]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {($ Id.VSub_DollarName ret)} {<-eq>} {<2>})]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp Id.Op_DAmp]
                      children: [
                        (C {<apply_autostash>})
                        (C {<rm>} {<-rf>} {(DQ ($ Id.VSub_DollarName state_dir))})
                        (C {<die>} {(DQ <'Nothing to do'>)})
                      ]
                    )
                  ]
                  spids: [1128 1142]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ControlFlow
              token: <Id.ControlFlow_Exit exit>
              arg_word: {($ Id.VSub_DollarName ret)}
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: run_pre_rebase_hook
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName ok_to_skip_pre_rebase))})
                            (C {<test>} {<-x>} 
                              {
                                (DQ 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<rev-parse>} {<--git-path>} {<'hooks/pre-rebase'>})
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<git>} {<rev-parse>} {<--git-path>} {<'hooks/pre-rebase'>})
                                right: <Id.Eof_RParen _>
                              )
                            )
                          } 
                          {
                            (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_At '@'))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          }
                        )
                        (C {<die>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<gettext>} {(DQ <'The pre-rebase hook refused to rebase.'>)})
                                right: <Id.Eof_RParen _>
                              )
                            )
                          }
                        )
                      ]
                    )
                  ]
                  spids: [1186 1216]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName apply_dir)) <'/applying'>})
        (C {<die>} 
          {
            (DQ 
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: (C {<gettext>} {(DQ <'It looks like git-am is in progress. Cannot rebase.'>)})
                right: <Id.Eof_RParen _>
              )
            )
          }
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-d>} {(DQ ($ Id.VSub_DollarName apply_dir))})]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
                  op: assign_op.Equal
                  rhs: {<am>}
                  spids: [1298]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir='> name:state_dir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName apply_dir))}
                  spids: [1302]
                )
              ]
              redirects: []
            )
          ]
          spids: [1285 1295]
        )
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-d>} {(DQ ($ Id.VSub_DollarName merge_dir))})]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName merge_dir)) <'/interactive'>})
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
                          op: assign_op.Equal
                          rhs: {<interactive>}
                          spids: [1335]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'interactive_rebase='>
                              name: interactive_rebase
                            )
                          op: assign_op.Equal
                          rhs: {<explicit>}
                          spids: [1339]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1320 1332]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
                      op: assign_op.Equal
                      rhs: {<merge>}
                      spids: [1346]
                    )
                  ]
                  redirects: []
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir='> name:state_dir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName merge_dir))}
                  spids: [1353]
                )
              ]
              redirects: []
            )
          ]
          spids: [1307 1317]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName type))})
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'in_progress='> name:in_progress)
              op: assign_op.Equal
              rhs: {<t>}
              spids: [1370]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'total_argc='> name:total_argc)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Pound '#')}
          spids: [1374]
        )
      ]
      redirects: []
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [(C {<test>} {($ Id.VSub_Pound '#')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>})]
        )
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_Number 1))}
              arms: [
                (case_arm
                  pat_list: [{<--no-verify>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'ok_to_skip_pre_rebase='>
                              name: ok_to_skip_pre_rebase
                            )
                          op: assign_op.Equal
                          rhs: {<yes>}
                          spids: [1404]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1400 1401 1408 -1]
                )
                (case_arm
                  pat_list: [{<--verify>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'ok_to_skip_pre_rebase='>
                              name: ok_to_skip_pre_rebase
                            )
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1415]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1411 1412 1418 -1]
                )
                (case_arm
                  pat_list: [{<--continue>} {<--skip>} {<--abort>} {<--edit-todo>}]
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {($ Id.VSub_DollarName total_argc)} {<-eq>} {<2>})
                        (C {<usage>})
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'action='> name:action)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (braced_var_sub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Number 1>
                                var_name: 1
                                suffix_op: (suffix_op.Unary op:<Id.VOp1_DPound '##'> arg_word:{<-->})
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                          spids: [1444]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1421 1428 1452 -1]
                )
                (case_arm
                  pat_list: [{<--onto> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onto='> name:onto)
                          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: {<'--onto='>}
                                    )
                                  right: <Id.Right_DollarBrace '}'>
                                )
                              )
                            }
                          spids: [1461]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1455 1458 1471 -1]
                )
                (case_arm
                  pat_list: [{<--exec> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ (${ Id.VSub_Name cmd) <'exec '> 
                                (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: {<'--exec='>}
                                    )
                                  right: <Id.Right_DollarBrace '}'>
                                ) (${ Id.VSub_Name LF)
                              )
                            }
                          spids: [1480]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName interactive_rebase))})
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'interactive_rebase='>
                                  name: interactive_rebase
                                )
                              op: assign_op.Equal
                              rhs: {<implied>}
                              spids: [1507]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  ]
                  spids: [1474 1477 1511 -1]
                )
                (case_arm
                  pat_list: [{<--interactive>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'interactive_rebase='>
                              name: interactive_rebase
                            )
                          op: assign_op.Equal
                          rhs: {<explicit>}
                          spids: [1518]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1514 1515 1522 -1]
                )
                (case_arm
                  pat_list: [{<--keep-empty>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'keep_empty='> name:keep_empty)
                          op: assign_op.Equal
                          rhs: {<yes>}
                          spids: [1529]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1525 1526 1533 -1]
                )
                (case_arm
                  pat_list: [{<--preserve-merges>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'preserve_merges='>
                              name: preserve_merges
                            )
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1540]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName interactive_rebase))})
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'interactive_rebase='>
                                  name: interactive_rebase
                                )
                              op: assign_op.Equal
                              rhs: {<implied>}
                              spids: [1554]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  ]
                  spids: [1536 1537 1558 -1]
                )
                (case_arm
                  pat_list: [{<--autosquash>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autosquash='> name:autosquash)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1565]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1561 1562 1569 -1]
                )
                (case_arm
                  pat_list: [{<--no-autosquash>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autosquash='> name:autosquash)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1576]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1572 1573 1579 -1]
                )
                (case_arm
                  pat_list: [{<--fork-point>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'fork_point='> name:fork_point)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1586]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1582 1583 1590 -1]
                )
                (case_arm
                  pat_list: [{<--no-fork-point>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'fork_point='> name:fork_point)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1597]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1593 1594 1600 -1]
                )
                (case_arm
                  pat_list: [{<--merge>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'do_merge='> name:do_merge)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1607]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1603 1604 1611 -1]
                )
                (case_arm
                  pat_list: [{<--strategy-option> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'strategy_opts='>
                              name: strategy_opts
                            )
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ ($ Id.VSub_DollarName strategy_opts) <' '> 
                                (command_sub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (C {<git>} {<rev-parse>} {<--sq-quote>} 
                                      {
                                        (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: {<'--strategy-option='>}
                                              )
                                            right: <Id.Right_DollarBrace '}'>
                                          )
                                        )
                                      }
                                    )
                                  right: <Id.Eof_RParen _>
                                )
                              )
                            }
                          spids: [1620]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'do_merge='> name:do_merge)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1643]
                        )
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName strategy))})
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
                              op: assign_op.Equal
                              rhs: {<recursive>}
                              spids: [1657]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  ]
                  spids: [1614 1617 1661 -1]
                )
                (case_arm
                  pat_list: [{<--strategy> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'strategy='> name:strategy)
                          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: {<'--strategy='>}
                                    )
                                  right: <Id.Right_DollarBrace '}'>
                                )
                              )
                            }
                          spids: [1670]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'do_merge='> name:do_merge)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1680]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1664 1667 1684 -1]
                )
                (case_arm
                  pat_list: [{<--no-stat>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diffstat='> name:diffstat)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1691]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1687 1688 1694 -1]
                )
                (case_arm
                  pat_list: [{<--stat>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diffstat='> name:diffstat)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1701]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1697 1698 1705 -1]
                )
                (case_arm
                  pat_list: [{<--autostash>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autostash='> name:autostash)
                          op: assign_op.Equal
                          rhs: {<true>}
                          spids: [1712]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1708 1709 1716 -1]
                )
                (case_arm
                  pat_list: [{<--no-autostash>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'autostash='> name:autostash)
                          op: assign_op.Equal
                          rhs: {<false>}
                          spids: [1723]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1719 1720 1727 -1]
                )
                (case_arm
                  pat_list: [{<--verbose>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'verbose='> name:verbose)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1734]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diffstat='> name:diffstat)
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1738]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'GIT_QUIET='> name:GIT_QUIET)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1742]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1730 1731 1745 -1]
                )
                (case_arm
                  pat_list: [{<--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: {<t>}
                          spids: [1752]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'git_am_opt='> name:git_am_opt)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName git_am_opt) <' -q'>)}
                          spids: [1756]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'verbose='> name:verbose)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1763]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diffstat='> name:diffstat)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [1766]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1748 1749 1769 -1]
                )
                (case_arm
                  pat_list: [{<--whitespace> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'git_am_opt='> name:git_am_opt)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ ($ Id.VSub_DollarName git_am_opt) <' --whitespace='> 
                                (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: {<'--whitespace='>}
                                    )
                                  right: <Id.Right_DollarBrace '}'>
                                )
                              )
                            }
                          spids: [1778]
                        )
                      ]
                      redirects: []
                    )
                    (command.Case
                      to_match: 
                        {
                          (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: {<'--whitespace='>}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          )
                        }
                      arms: [
                        (case_arm
                          pat_list: [{<fix>} {<strip>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'force_rebase='>
                                      name: force_rebase
                                    )
                                  op: assign_op.Equal
                                  rhs: {<t>}
                                  spids: [1809]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [1803 1806 1813 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1772 1775 1819 -1]
                )
                (case_arm
                  pat_list: [{<--ignore-whitespace>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'git_am_opt='> name:git_am_opt)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName git_am_opt) <' '> ($ Id.VSub_Number 1))}
                          spids: [1826]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1822 1823 1834 -1]
                )
                (case_arm
                  pat_list: [{<--committer-date-is-author-date>} {<--ignore-date>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'git_am_opt='> name:git_am_opt)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName git_am_opt) <' '> ($ Id.VSub_Number 1))}
                          spids: [1843]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'force_rebase='>
                              name: force_rebase
                            )
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1851]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1837 1840 1855 -1]
                )
                (case_arm
                  pat_list: [{<-C> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'git_am_opt='> name:git_am_opt)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName git_am_opt) <' '> ($ Id.VSub_Number 1))}
                          spids: [1863]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1858 1860 1871 -1]
                )
                (case_arm
                  pat_list: [{<--root>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'rebase_root='>
                              name: rebase_root
                            )
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1878]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1874 1875 1882 -1]
                )
                (case_arm
                  pat_list: [{<--force-rebase>} {<--no-ff>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'force_rebase='>
                              name: force_rebase
                            )
                          op: assign_op.Equal
                          rhs: {<t>}
                          spids: [1891]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1885 1888 1895 -1]
                )
                (case_arm
                  pat_list: [{<--rerere-autoupdate>} {<--no-rerere-autoupdate>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'allow_rerere_autoupdate='>
                              name: allow_rerere_autoupdate
                            )
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number 1))}
                          spids: [1904]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1898 1901 1910 -1]
                )
                (case_arm
                  pat_list: [{<--gpg-sign>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'gpg_sign_opt='>
                              name: gpg_sign_opt
                            )
                          op: assign_op.Equal
                          rhs: {<-S>}
                          spids: [1917]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1913 1914 1921 -1]
                )
                (case_arm
                  pat_list: [{<--gpg-sign> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'gpg_sign_opt='>
                              name: gpg_sign_opt
                            )
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ <-S> 
                                (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: {<'--gpg-sign='>}
                                    )
                                  right: <Id.Right_DollarBrace '}'>
                                )
                              )
                            }
                          spids: [1930]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1924 1927 1941 -1]
                )
                (case_arm
                  pat_list: [{<-->}]
                  action: [(C {<shift>}) (command.ControlFlow token:<Id.ControlFlow_Break break>)]
                  spids: [1944 1945 1954 -1]
                )
              ]
              redirects: []
            )
            (C {<shift>})
          ]
        )
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [(C {<test>} {($ Id.VSub_Pound '#')} {<-gt>} {<2>}) (C {<usage>})]
    )
    (command.If
      arms: [
        (if_arm
          cond: (condition.Shell commands:[(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName action))})])
          action: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName in_progress))})
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<gettext>} {(DQ <'No rebase in progress?'>)})
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {(DQ ($ Id.VSub_DollarName type))} {<Id.Lit_Equals '='>} 
                              {<interactive>}
                            )
                            (C {<test>} {(DQ ($ Id.VSub_DollarName GIT_REFLOG_ACTION))} 
                              {<Id.Lit_Equals '='>} {<rebase>}
                            )
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'GIT_REFLOG_ACTION='>
                              name: GIT_REFLOG_ACTION
                            )
                          op: assign_op.Equal
                          rhs: {(DQ <'rebase -i ('> ($ Id.VSub_DollarName action) <')'>)}
                          spids: [2045]
                        )
                      ]
                      redirects: []
                    )
                    (C {<export>} {<GIT_REFLOG_ACTION>})
                  ]
                  spids: [2017 2042]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          spids: [1977 1987]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.AndOr
                  ops: [Id.Op_DAmp]
                  children: [
                    (C {<test>} {(DQ ($ Id.VSub_DollarName action))} {<Id.Lit_Equals '='>} 
                      {(DQ <edit-todo>)}
                    )
                    (C {<test>} {(DQ ($ Id.VSub_DollarName type))} 
                      {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <interactive>)}
                    )
                  ]
                )
              ]
            )
          action: [
            (C {<die>} 
              {
                (DQ 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (C {<gettext>} 
                        {(DQ <'The --edit-todo action can only be used during interactive rebase.'>)}
                      )
                    right: <Id.Eof_RParen _>
                  )
                )
              }
            )
          ]
          spids: [2063 2092]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.Case
      to_match: {(DQ ($ Id.VSub_DollarName action))}
      arms: [
        (case_arm
          pat_list: [{<Id.ControlFlow_Continue continue>}]
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [{<git>} {<rev-parse>} {<--verify>} {<HEAD>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<'/dev/null'>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<gettext>} {(DQ <'Cannot read HEAD'>)})
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DPipe]
              children: [
                (C {<git>} {<update-index>} {<--ignore-submodules>} {<--refresh>})
                (C {<git>} {<diff-files>} {<--quiet>} {<--ignore-submodules>})
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (C {<echo>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<gettext>} 
                                {
                                  (DQ <'You must edit all merge conflicts and then\n'> 
                                    <'mark them as resolved using git add'>
                                  )
                                }
                              )
                            right: <Id.Eof_RParen _>
                          )
                        )
                      }
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
              ]
            )
            (C {<read_basic_state>})
            (C {<run_specific_rebase>})
          ]
          spids: [2118 2119 2205 -1]
        )
        (case_arm
          pat_list: [{<skip>}]
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<output>} {<git>} {<reset>} {<--hard>} {<HEAD>})
                (command.ControlFlow
                  token: <Id.ControlFlow_Exit exit>
                  arg_word: {($ Id.VSub_QMark '?')}
                )
              ]
            )
            (C {<read_basic_state>})
            (C {<run_specific_rebase>})
          ]
          spids: [2207 2208 2234 -1]
        )
        (case_arm
          pat_list: [{<abort>}]
          action: [
            (C {<git>} {<rerere>} {<clear>})
            (C {<read_basic_state>})
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName head_name))}
              arms: [
                (case_arm
                  pat_list: [{<'refs/'> <Id.Lit_Star '*'>}]
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<git>} {<symbolic-ref>} {<-m>} {(DQ <'rebase: aborting'>)} {<HEAD>} 
                          {($ Id.VSub_DollarName head_name)}
                        )
                        (C {<die>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<eval_gettext>} 
                                    {
                                      (DQ <'Could not move back to '> 
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\$'>
                                          ch: '$'
                                        ) <head_name>
                                      )
                                    }
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            )
                          }
                        )
                      ]
                    )
                  ]
                  spids: [2259 2261 2296 -1]
                )
              ]
              redirects: []
            )
            (C {<output>} {<git>} {<reset>} {<--hard>} {($ Id.VSub_DollarName orig_head)})
            (C {<finish_rebase>})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
          ]
          spids: [2236 2237 2319 -1]
        )
        (case_arm
          pat_list: [{<edit-todo>}]
          action: [(C {<run_specific_rebase>})]
          spids: [2321 2322 2328 -1]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName in_progress))})]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir_base='> name:state_dir_base)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (braced_var_sub
                        left: <Id.Left_DollarBrace '${'>
                        token: <Id.VSub_Name state_dir>
                        var_name: state_dir
                        suffix_op: 
                          (suffix_op.Unary
                            op: <Id.VOp1_DPound '##'>
                            arg_word: {<Id.Lit_Other '*'> <Id.Lit_Slash '/'>}
                          )
                        right: <Id.Right_DollarBrace '}'>
                      )
                    }
                  spids: [2349]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'cmd_live_rebase='>
                      name: cmd_live_rebase
                    )
                  op: assign_op.Equal
                  rhs: {(DQ <'git rebase (--continue | --abort | --skip)'>)}
                  spids: [2358]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'cmd_clear_stale_rebase='>
                      name: cmd_clear_stale_rebase
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ <'rm -fr '> 
                        (word_part.EscapedLiteral
                          token: <Id.Lit_EscapedChar '\\"'>
                          ch: '"'
                        ) ($ Id.VSub_DollarName state_dir) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"')
                      )
                    }
                  spids: [2364]
                )
              ]
              redirects: []
            )
            (C {<die>} 
              {
                (DQ <'\n'> 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (C {<eval_gettext>} 
                        {
                          (SQ <'It seems that there is already a $state_dir_base directory, and\n'> 
                            <
'I wonder if you are in the middle of another rebase.  If that is the\n'
                            > <'case, please try\n'> <'\t$cmd_live_rebase\n'> <'If that is not the case, please\n'> 
                            <'\t$cmd_clear_stale_rebase\n'> <'and run me again.  I am stopping in case you still have something\n'> <'valuable there.'>
                          )
                        }
                      )
                    right: <Id.Eof_RParen _>
                  )
                )
              }
            )
          ]
          spids: [2336 2346]
        )
      ]
      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 rebase_root))})
                    (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName onto))})
                  ]
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName interactive_rebase))})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike 'interactive_rebase='>
                          name: interactive_rebase
                        )
                      op: assign_op.Equal
                      rhs: {<implied>}
                      spids: [2429]
                    )
                  ]
                  redirects: []
                )
              ]
            )
          ]
          spids: [2396 2416]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName interactive_rebase))})]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
                  op: assign_op.Equal
                  rhs: {<interactive>}
                  spids: [2448]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir='> name:state_dir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName merge_dir))}
                  spids: [2452]
                )
              ]
              redirects: []
            )
          ]
          spids: [2435 2445]
        )
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName do_merge))})]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
                  op: assign_op.Equal
                  rhs: {<merge>}
                  spids: [2470]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir='> name:state_dir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName merge_dir))}
                  spids: [2474]
                )
              ]
              redirects: []
            )
          ]
          spids: [2457 2467]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'type='> name:type)
              op: assign_op.Equal
              rhs: {<am>}
              spids: [2482]
            )
          ]
          redirects: []
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'state_dir='> name:state_dir)
              op: assign_op.Equal
              rhs: {(DQ ($ Id.VSub_DollarName apply_dir))}
              spids: [2486]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName rebase_root))})]
            )
          action: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_Pound '#'))}
              arms: [
                (case_arm
                  pat_list: [{<0>}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Pipeline
                                  children: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'upstream_name='>
                                              name: upstream_name
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Simple
                                                    words: [
                                                      {<git>}
                                                      {<rev-parse>}
                                                      {<--symbolic-full-name>}
                                                      {<--verify>}
                                                      {<-q>}
                                                      {<Id.Lit_At '@'> <Id.Lit_LBrace '{'> <upstream> 
                                                        <Id.Lit_RBrace '}'>
                                                      }
                                                    ]
                                                    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: [2524]
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  negated: T
                                  stderr_indices: []
                                )
                              ]
                            )
                          action: [
                            (C {<.>} {<git-parse-remote>})
                            (C {<error_on_missing_default_upstream>} {(DQ <rebase>)} {(DQ <rebase>)} 
                              {(DQ <against>)} 
                              {
                                (DQ <'git rebase '> 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: (C {<gettext>} {(SQ <'<branch>'>)})
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                          spids: [2520 2548]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {(DQ ($ Id.VSub_DollarName fork_point))} {<Id.Lit_Equals '='>} 
                          {<auto>}
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'fork_point='>
                                  name: fork_point
                                )
                              op: assign_op.Equal
                              rhs: {<t>}
                              spids: [2600]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  ]
                  spids: [2516 2517 2604 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'upstream_name='>
                              name: upstream_name
                            )
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number 1))}
                          spids: [2610]
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (C {<test>} {(DQ ($ Id.VSub_DollarName upstream_name))} 
                                  {<Id.Lit_Equals '='>} {(DQ <->)}
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'upstream_name='>
                                      name: upstream_name
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ <'@{-1}'>)}
                                  spids: [2634]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2616 2631]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                  spids: [2607 2608 2646 -1]
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'upstream='> name:upstream)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<peel_committish>} {(DQ (${ Id.VSub_Name upstream_name))})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [2652]
                    )
                  ]
                  redirects: []
                )
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'invalid upstream '> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <upstream_name>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'upstream_arg='> name:upstream_arg)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName upstream_name))}
                  spids: [2681]
                )
              ]
              redirects: []
            )
          ]
          spids: [2494 2504]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName onto))})]
                )
              action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'empty_tree='> name:empty_tree)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<git>} {<hash-object>} {<-t>} {<tree>} {<'/dev/null'>})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [2703]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onto='> name:onto)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (command.Simple
                                words: [{<git>} {<commit-tree>} {($ Id.VSub_DollarName empty_tree)}]
                                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: [2717]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'squash_onto='> name:squash_onto)
                      op: assign_op.Equal
                      rhs: {(DQ ($ Id.VSub_DollarName onto))}
                      spids: [2730]
                    )
                  ]
                  redirects: []
                )
              ]
              spids: [2689 2700]
            )
          ]
          else_action: []
          redirects: []
        )
        (C {<unset>} {<upstream_name>})
        (C {<unset>} {<upstream>})
        (command.AndOr
          ops: [Id.Op_DAmp]
          children: [(C {<test>} {($ Id.VSub_Pound '#')} {<-gt>} {<1>}) (C {<usage>})]
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'upstream_arg='> name:upstream_arg)
              op: assign_op.Equal
              rhs: {<--root>}
              spids: [2762]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onto_name='> name:onto_name)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                left: <Id.Left_DollarBrace '${'>
                token: <Id.VSub_Name onto>
                var_name: onto
                suffix_op: 
                  (suffix_op.Unary
                    op: <Id.VTest_Hyphen _>
                    arg_word: {(DQ ($ Id.VSub_DollarName upstream_name))}
                  )
                right: <Id.Right_DollarBrace '}'>
              )
            }
          spids: [2771]
        )
      ]
      redirects: []
    )
    (command.Case
      to_match: {(DQ ($ Id.VSub_DollarName onto_name))}
      arms: [
        (case_arm
          pat_list: [{<Id.Lit_Star '*'> <Id.Lit_TDot ...> <Id.Lit_Star '*'>}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'left='> name:left)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (braced_var_sub
                                        left: <Id.Left_DollarBrace '${'>
                                        token: <Id.VSub_Name onto_name>
                                        var_name: onto_name
                                        suffix_op: 
                                          (suffix_op.Unary
                                            op: <Id.VOp1_Percent '%'>
                                            arg_word: {<...> <Id.Lit_Other '*'>}
                                          )
                                        right: <Id.Right_DollarBrace '}'>
                                      )
                                    }
                                  spids: [2796]
                                )
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'right='> name:right)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (braced_var_sub
                                        left: <Id.Left_DollarBrace '${'>
                                        token: <Id.VSub_Name onto_name>
                                        var_name: onto_name
                                        suffix_op: 
                                          (suffix_op.Unary
                                            op: <Id.VOp1_Pound '#'>
                                            arg_word: {<Id.Lit_Other '*'> <...>}
                                          )
                                        right: <Id.Right_DollarBrace '}'>
                                      )
                                    }
                                  spids: [2804]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onto='> name:onto)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<git>} {<merge-base>} {<--all>} 
                                            {
                                              (braced_var_sub
                                                left: <Id.Left_DollarBrace '${'>
                                                token: <Id.VSub_Name left>
                                                var_name: left
                                                suffix_op: 
                                                  (suffix_op.Unary
                                                    op: <Id.VTest_ColonHyphen _>
                                                    arg_word: {<HEAD>}
                                                  )
                                                right: <Id.Right_DollarBrace '}'>
                                              )
                                            } 
                                            {
                                              (braced_var_sub
                                                left: <Id.Left_DollarBrace '${'>
                                                token: <Id.VSub_Name right>
                                                var_name: right
                                                suffix_op: 
                                                  (suffix_op.Unary
                                                    op: <Id.VTest_ColonHyphen _>
                                                    arg_word: {<HEAD>}
                                                  )
                                                right: <Id.Right_DollarBrace '}'>
                                              )
                                            }
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [2815]
                                )
                              ]
                              redirects: []
                            )
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_DollarName onto))}
                      arms: [
                        (case_arm
                          pat_list: [
                            {<Id.Lit_QMark '?'> <Id.Lit_Star '*'> (DQ ($ Id.VSub_DollarName LF)) 
                              <Id.Lit_QMark '?'> <Id.Lit_Star '*'>
                            }
                          ]
                          action: [
                            (C {<die>} 
                              {
                                (DQ 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<eval_gettext>} 
                                        {
                                          (DQ 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\$'>
                                              ch: '$'
                                            ) <'onto_name: there are more than one merge bases'>
                                          )
                                        }
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                          spids: [2849 2856 2873 -1]
                        )
                        (case_arm
                          pat_list: [{(SQ )}]
                          action: [
                            (C {<die>} 
                              {
                                (DQ 
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<eval_gettext>} 
                                        {
                                          (DQ 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\$'>
                                              ch: '$'
                                            ) <'onto_name: there is no merge base'>
                                          )
                                        }
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            )
                          ]
                          spids: [2876 2878 2895 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [2794 2837]
                )
              ]
              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:'$') 
                                <'onto_name: there is no merge base'>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
              redirects: []
            )
          ]
          spids: [2788 2791 2921 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onto='> name:onto)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<peel_committish>} {(DQ ($ Id.VSub_DollarName onto_name))})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [2927]
                    )
                  ]
                  redirects: []
                )
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'Does not point to a valid commit: '> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <onto_name>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
          ]
          spids: [2923 2924 2954 -1]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'switch_to='> name:switch_to)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [2971]
        )
      ]
      redirects: []
    )
    (command.Case
      to_match: {(DQ ($ Id.VSub_Pound '#'))}
      arms: [
        (case_arm
          pat_list: [{<1>}]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'branch_name='> name:branch_name)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                  spids: [2989]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'switch_to='> name:switch_to)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                  spids: [2995]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<git>} {<show-ref>} {<--verify>} {<--quiet>} {<-->} 
                              {(DQ <'refs/heads/'> ($ Id.VSub_Number 1))}
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'orig_head='>
                                      name: orig_head
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<git>} {<rev-parse>} {<-q>} {<--verify>} 
                                            {(DQ <'refs/heads/'> ($ Id.VSub_Number 1))}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [3022]
                                )
                              ]
                              redirects: []
                            )
                          ]
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head_name='> name:head_name)
                          op: assign_op.Equal
                          rhs: {(DQ <'refs/heads/'> ($ Id.VSub_Number 1))}
                          spids: [3042]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [3002 3039]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'orig_head='>
                                  name: orig_head
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<git>} {<rev-parse>} {<-q>} {<--verify>} 
                                        {(DQ ($ Id.VSub_Number 1))}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [3051]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head_name='> name:head_name)
                          op: assign_op.Equal
                          rhs: {(DQ <'detached HEAD'>)}
                          spids: [3070]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [3049 3067]
                )
              ]
              else_action: [
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'fatal: no such branch: '> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <branch_name>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
              redirects: []
            )
          ]
          spids: [2981 2982 3097 -1]
        )
        (case_arm
          pat_list: [{<0>}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'branch_name='>
                                  name: branch_name
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: (C {<git>} {<symbolic-ref>} {<-q>} {<HEAD>})
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [3109]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head_name='> name:head_name)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName branch_name)}
                          spids: [3124]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'branch_name='>
                              name: branch_name
                            )
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<expr>} {(DQ <z> ($ Id.VSub_DollarName branch_name))} 
                                    {<Id.Lit_Colon ':'>} {(SQ <'zrefs/heads/\\(.*\\)'>)}
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [3128]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [3107 3121]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'head_name='> name:head_name)
                      op: assign_op.Equal
                      rhs: {(DQ <'detached HEAD'>)}
                      spids: [3148]
                    )
                  ]
                  redirects: []
                )
                (command.Sentence
                  child: 
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'branch_name='>
                              name: branch_name
                            )
                          op: assign_op.Equal
                          rhs: {<HEAD>}
                          spids: [3154]
                        )
                      ]
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'orig_head='> name:orig_head)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<git>} {<rev-parse>} {<--verify>} {<HEAD>})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [3165]
                    )
                  ]
                  redirects: []
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
              ]
            )
          ]
          spids: [3099 3100 3181 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [(C {<die>} {(DQ <'BUG: unexpected number of arguments left to parse'>)})]
          spids: [3183 3184 3194 -1]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<test>} {(DQ ($ Id.VSub_DollarName fork_point))} {<Id.Lit_Equals '='>} {<t>})
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'new_upstream='> name:new_upstream)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<git>} {<merge-base>} {<--fork-point>} 
                            {(DQ ($ Id.VSub_DollarName upstream_name))} 
                            {
                              (DQ 
                                (braced_var_sub
                                  left: <Id.Left_DollarBrace '${'>
                                  token: <Id.VSub_Name switch_to>
                                  var_name: switch_to
                                  suffix_op: 
                                    (suffix_op.Unary
                                      op: <Id.VTest_ColonHyphen _>
                                      arg_word: {<HEAD>}
                                    )
                                  right: <Id.Right_DollarBrace '}'>
                                )
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [3214]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName new_upstream))})]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'restrict_revision='>
                              name: restrict_revision
                            )
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName new_upstream)}
                          spids: [3252]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [3238 3249]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          spids: [3199 3211]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.AndOr
                  ops: [Id.Op_DAmp]
                  children: [
                    (C {<test>} {(DQ ($ Id.VSub_DollarName autostash))} {<Id.Lit_Equals '='>} {<true>})
                    (command.Pipeline
                      children: [
                        (command.Subshell
                          child: (C {<require_clean_work_tree>})
                          redirects: [
                            (redir
                              op: <Id.Redir_Great '2>'>
                              loc: (redir_loc.Fd fd:2)
                              arg: {<'/dev/null'>}
                            )
                          ]
                        )
                      ]
                      negated: T
                      stderr_indices: []
                    )
                  ]
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'stash_sha1='> name:stash_sha1)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<git>} {<stash>} {<create>} {(DQ <autostash>)})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [3287]
                    )
                  ]
                  redirects: []
                )
                (C {<die>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<gettext>} {(SQ <'Cannot autostash'>)})
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
              children: [
                (C {<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName state_dir))})
                (command.Simple
                  words: [{<echo>} {($ Id.VSub_DollarName stash_sha1)}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName state_dir) <'/autostash'>)}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'stash_abbrev='> name:stash_abbrev)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<git>} {<rev-parse>} {<--short>} {($ Id.VSub_DollarName stash_sha1)})
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [3341]
                    )
                  ]
                  redirects: []
                )
                (C {<echo>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<eval_gettext>} {(SQ <'Created autostash: $stash_abbrev'>)})
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
                (C {<git>} {<reset>} {<--hard>})
              ]
            )
          ]
          spids: [3261 3284]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {<require_clean_work_tree>} {(DQ <rebase>)} 
      {
        (DQ 
          (command_sub
            left_token: <Id.Left_DollarParen '$('>
            child: (C {<gettext>} {(DQ <'Please commit or stash them.'>)})
            right: <Id.Eof_RParen _>
          )
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mb='> name:mb)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (C {<git>} {<merge-base>} {(DQ ($ Id.VSub_DollarName onto))} 
                    {(DQ ($ Id.VSub_DollarName orig_head))}
                  )
                right: <Id.Eof_RParen _>
              )
            }
          spids: [3412]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.AndOr
                  ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
                  children: [
                    (C {<test>} {(DQ ($ Id.VSub_DollarName type))} 
                      {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<interactive>}
                    )
                    (C {<test>} {(DQ ($ Id.VSub_DollarName upstream))} {<Id.Lit_Equals '='>} 
                      {(DQ ($ Id.VSub_DollarName onto))}
                    )
                    (C {<test>} {(DQ ($ Id.VSub_DollarName mb))} {<Id.Lit_Equals '='>} 
                      {(DQ ($ Id.VSub_DollarName onto))}
                    )
                    (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName restrict_revision))})
                    (command.Pipeline
                      children: [
                        (command.Subshell
                          child: 
                            (command.Pipeline
                              children: [
                                (C {<git>} {<rev-list>} {<--parents>} 
                                  {(DQ ($ Id.VSub_DollarName onto)) <..> 
                                    (DQ ($ Id.VSub_DollarName orig_head))
                                  }
                                )
                                (C {<sane_grep>} {(DQ <' .* '>)})
                              ]
                              negated: F
                              stderr_indices: []
                            )
                          redirects: [
                            (redir
                              op: <Id.Redir_Great '>'>
                              loc: (redir_loc.Fd fd:1)
                              arg: {<'/dev/null'>}
                            )
                          ]
                        )
                      ]
                      negated: T
                      stderr_indices: []
                    )
                  ]
                )
              ]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName force_rebase))})]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName switch_to))})
                        (command.Simple
                          words: [
                            {<git>}
                            {<checkout>}
                            {<-q>}
                            {(DQ ($ Id.VSub_DollarName switch_to))}
                            {<-->}
                          ]
                          redirects: []
                          more_env: [
                            (env_pair
                              name: GIT_REFLOG_ACTION
                              val: 
                                {
                                  (DQ ($ Id.VSub_DollarName GIT_REFLOG_ACTION) <': checkout '> 
                                    ($ Id.VSub_DollarName switch_to)
                                  )
                                }
                              spids: [3548]
                            )
                          ]
                          do_fork: T
                        )
                      ]
                    )
                    (C {<say>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<eval_gettext>} 
                                {
                                  (DQ <'Current branch '> 
                                    (word_part.EscapedLiteral
                                      token: <Id.Lit_EscapedChar '\\$'>
                                      ch: '$'
                                    ) <'branch_name is up to date.'>
                                  )
                                }
                              )
                            right: <Id.Eof_RParen _>
                          )
                        )
                      }
                    )
                    (C {<finish_rebase>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [3519 3530]
                )
              ]
              else_action: [
                (C {<say>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<eval_gettext>} 
                            {
                              (DQ <'Current branch '> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\$'>
                                  ch: '$'
                                ) <'branch_name is up to date, rebase forced.'>
                              )
                            }
                          )
                        right: <Id.Eof_RParen _>
                      )
                    )
                  }
                )
              ]
              redirects: []
            )
          ]
          spids: [3427 3516]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {<run_pre_rebase_hook>} {(DQ ($ Id.VSub_DollarName upstream_arg))} {(DQ ($ Id.VSub_At '@'))})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName diffstat))})]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName verbose))})]
                    )
                  action: [
                    (C {<echo>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<eval_gettext>} 
                                {
                                  (DQ <'Changes from '> 
                                    (word_part.EscapedLiteral
                                      token: <Id.Lit_EscapedChar '\\$'>
                                      ch: '$'
                                    ) <'mb to '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <'onto:'>
                                  )
                                }
                              )
                            right: <Id.Eof_RParen _>
                          )
                        )
                      }
                    )
                  ]
                  spids: [3643 3654]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.Simple
              words: [
                {<git>}
                {<diff>}
                {<--stat>}
                {<--summary>}
                {(DQ ($ Id.VSub_DollarName mb))}
                {(DQ ($ Id.VSub_DollarName onto))}
              ]
              redirects: []
              more_env: [(env_pair name:GIT_PAGER val:{(SQ )} spids:[3681])]
              do_fork: T
            )
          ]
          spids: [3630 3640]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<test>} {(DQ ($ Id.VSub_DollarName type))} {<Id.Lit_Equals '='>} {<interactive>})
        (C {<run_specific_rebase>})
      ]
    )
    (C {<say>} 
      {
        (DQ 
          (command_sub
            left_token: <Id.Left_DollarParen '$('>
            child: (C {<gettext>} {(DQ <'First, rewinding head to replay your work on top of it...'>)})
            right: <Id.Eof_RParen _>
          )
        )
      }
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [{<git>} {<checkout>} {<-q>} {(DQ ($ Id.VSub_DollarName onto) <'^0'>)}]
          redirects: []
          more_env: [
            (env_pair
              name: GIT_REFLOG_ACTION
              val: 
                {
                  (DQ ($ Id.VSub_DollarName GIT_REFLOG_ACTION) <': checkout '> 
                    ($ Id.VSub_DollarName onto_name)
                  )
                }
              spids: [3735]
            )
          ]
          do_fork: T
        )
        (C {<die>} {(DQ <'could not detach HEAD'>)})
      ]
    )
    (C {<git>} {<update-ref>} {<ORIG_HEAD>} {($ Id.VSub_DollarName orig_head)})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<test>} {(DQ ($ Id.VSub_DollarName mb))} {<Id.Lit_Equals '='>} 
                  {(DQ ($ Id.VSub_DollarName orig_head))}
                )
              ]
            )
          action: [
            (C {<say>} 
              {
                (DQ 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (C {<eval_gettext>} 
                        {
                          (DQ <'Fast-forwarded '> 
                            (word_part.EscapedLiteral
                              token: <Id.Lit_EscapedChar '\\$'>
                              ch: '$'
                            ) <'branch_name to '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <onto_name.>
                          )
                        }
                      )
                    right: <Id.Eof_RParen _>
                  )
                )
              }
            )
            (C {<move_to_original_branch>})
            (C {<finish_rebase>})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
          ]
          spids: [3778 3792]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName rebase_root))})]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'revisions='> name:revisions)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName onto) <..> ($ Id.VSub_DollarName orig_head))}
                  spids: [3838]
                )
              ]
              redirects: []
            )
          ]
          spids: [3825 3835]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'revisions='> name:revisions)
              op: assign_op.Equal
              rhs: 
                {
                  (DQ 
                    (braced_var_sub
                      left: <Id.Left_DollarBrace '${'>
                      token: <Id.VSub_Name restrict_revision>
                      var_name: restrict_revision
                      suffix_op: 
                        (suffix_op.Unary
                          op: <Id.VTest_Hyphen _>
                          arg_word: {($ Id.VSub_DollarName upstream)}
                        )
                      right: <Id.Right_DollarBrace '}'>
                    ) <..> ($ Id.VSub_DollarName orig_head)
                  )
                }
              spids: [3848]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (C {<run_specific_rebase>})
  ]
)