(command.CommandList
  children: [
    (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: [3]
        )
      ]
      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: (rhs_word.Empty)
          spids: [5]
        )
      ]
      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 quiltimport [options]\n'> <'--\n'> <'n,dry-run     dry run\n'> 
                <'author=       author name and email address for patches without any\n'> <'patches=      path to the quilt patches\n'> <'series=       path to the quilt series file\n'>
              )
            }
          spids: [7]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBDIRECTORY_ON='> name:SUBDIRECTORY_ON)
          op: assign_op.Equal
          rhs: {<Yes>}
          spids: [18]
        )
      ]
      redirects: []
    )
    (C {<.>} {<git-sh-setup>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dry_run='> name:dry_run)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [26]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'quilt_author='> name:quilt_author)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [30]
        )
      ]
      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: [{<--author>}]
                  action: [
                    (C {<shift>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'quilt_author='>
                              name: quilt_author
                            )
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number 1))}
                          spids: [64]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [57 58 70 -1]
                )
                (case_arm
                  pat_list: [{<-n>} {<--dry-run>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dry_run='> name:dry_run)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [79]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [73 76 83 -1]
                )
                (case_arm
                  pat_list: [{<--patches>}]
                  action: [
                    (C {<shift>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'QUILT_PATCHES='>
                              name: QUILT_PATCHES
                            )
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number 1))}
                          spids: [93]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [86 87 99 -1]
                )
                (case_arm
                  pat_list: [{<--series>}]
                  action: [
                    (C {<shift>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'QUILT_SERIES='>
                              name: QUILT_SERIES
                            )
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number 1))}
                          spids: [109]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [102 103 115 -1]
                )
                (case_arm
                  pat_list: [{<-->}]
                  action: [(C {<shift>}) (command.ControlFlow token:<Id.ControlFlow_Break break>)]
                  spids: [118 119 126 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [(C {<usage>})]
                  spids: [129 130 136 -1]
                )
              ]
              redirects: []
            )
            (C {<shift>})
          ]
        )
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-n>} {(DQ ($ Id.VSub_DollarName quilt_author))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DPipe]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike 'quilt_author_name='>
                          name: quilt_author_name
                        )
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<expr>} {(DQ <z> ($ Id.VSub_DollarName quilt_author))} 
                                {<Id.Lit_Colon ':'>} {(SQ <'z\\(.*[^ ]\\) *<.*'>)}
                              )
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [167]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike 'quilt_author_email='>
                          name: quilt_author_email
                        )
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<expr>} {(DQ <z> ($ Id.VSub_DollarName quilt_author))} 
                                {<Id.Lit_Colon ':'>} {(SQ <'.*<\\([^>]*\\)'>)}
                              )
                            right: <Id.Eof_RParen _>
                          )
                        }
                      spids: [186]
                    )
                  ]
                  redirects: []
                )
                (C {<test>} {(SQ )} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} 
                  {(DQ ($ Id.VSub_DollarName quilt_author_name))}
                )
                (C {<test>} {(SQ )} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} 
                  {(DQ ($ Id.VSub_DollarName quilt_author_email))}
                )
                (C {<die>} {(DQ <'malformed --author parameter'>)})
              ]
            )
          ]
          spids: [150 164]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {<Id.Lit_Colon ':'>} 
      {
        (braced_var_sub
          left: <Id.Left_DollarBrace '${'>
          token: <Id.VSub_Name QUILT_PATCHES>
          var_name: QUILT_PATCHES
          suffix_op: (suffix_op.Unary op:<Id.VTest_ColonEquals _> arg_word:{<patches>})
          right: <Id.Right_DollarBrace '}'>
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<Id.Lit_LBracket '['>} {<-d>} {(DQ ($ Id.VSub_DollarName QUILT_PATCHES))} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                      negated: T
                      stderr_indices: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} 
              {
                (DQ <'The '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') 
                  ($ Id.VSub_DollarName QUILT_PATCHES) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' directory does not exist.'>
                )
              }
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [255 271]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {<Id.Lit_Colon ':'>} 
      {
        (braced_var_sub
          left: <Id.Left_DollarBrace '${'>
          token: <Id.VSub_Name QUILT_SERIES>
          var_name: QUILT_SERIES
          suffix_op: 
            (suffix_op.Unary
              op: <Id.VTest_ColonEquals _>
              arg_word: {($ Id.VSub_DollarName QUILT_PATCHES) <Id.Lit_Slash '/'> <series>}
            )
          right: <Id.Right_DollarBrace '}'>
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<Id.Lit_LBracket '['>} {<-e>} {(DQ ($ Id.VSub_DollarName QUILT_SERIES))} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                      negated: T
                      stderr_indices: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} 
              {
                (DQ <'The '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') 
                  ($ Id.VSub_DollarName QUILT_SERIES) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' file does not exist.'>
                )
              }
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [305 321]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tmp_dir='> name:tmp_dir)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName GIT_DIR)) <'/rebase-apply'>}
          spids: [345]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tmp_msg='> name:tmp_msg)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName tmp_dir) <'/msg'>)}
          spids: [351]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tmp_patch='> name:tmp_patch)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName tmp_dir) <'/patch'>)}
          spids: [357]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tmp_info='> name:tmp_info)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName tmp_dir) <'/info'>)}
          spids: [363]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'commit='> name:commit)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: (C {<git>} {<rev-parse>} {<HEAD>})
                right: <Id.Eof_RParen _>
              )
            }
          spids: [374]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<mkdir>} {($ Id.VSub_DollarName tmp_dir)})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>})
      ]
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.Simple
              words: [{<read>} {<patch_name>} {<level>} {<garbage>}]
              redirects: [(redir op:<Id.Redir_LessAnd '<&'> loc:(redir_loc.Fd fd:0) arg:{<3>})]
              more_env: []
              do_fork: T
            )
          ]
        )
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName patch_name))}
              arms: [
                (case_arm
                  pat_list: [{(SQ )} {(SQ <'#'>) <Id.Lit_Star '*'>}]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Continue continue>)]
                  spids: [418 425 428 -1]
                )
              ]
              redirects: []
            )
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName level))}
              arms: [
                (case_arm
                  pat_list: [{<-p> <Id.Lit_Star '*'>}]
                  action: []
                  spids: [442 444 446 -1]
                )
                (case_arm
                  pat_list: [{(SQ )} {(SQ <'#'>) <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'level='> name:level)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [459]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [449 456 460 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (C {<echo>} {(DQ <'unable to parse patch level, ignoring it.'>)})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'level='> name:level)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [474]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [463 464 475 -1]
                )
              ]
              redirects: []
            )
            (command.Case
              to_match: {(DQ ($ Id.VSub_DollarName garbage))}
              arms: [
                (case_arm
                  pat_list: [{(SQ )} {(SQ <'#'>) <Id.Lit_Star '*'>}]
                  action: []
                  spids: [490 497 498 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (C {<echo>} 
                      {
                        (DQ <'trailing garbage found in series file: '> ($ Id.VSub_DollarName garbage))
                      }
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [501 502 516 -1]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Pipeline
                              children: [
                                (C {<Id.Lit_LBracket '['>} {<-f>} 
                                  {
                                    (DQ ($ Id.VSub_DollarName QUILT_PATCHES) <'/'> 
                                      ($ Id.VSub_DollarName patch_name)
                                    )
                                  } {<Id.Lit_RBracket ']'>}
                                )
                              ]
                              negated: T
                              stderr_indices: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<echo>} {(DQ ($ Id.VSub_DollarName patch_name) <' doesn\'t exist. Skipping.'>)})
                    (command.ControlFlow token:<Id.ControlFlow_Continue continue>)
                  ]
                  spids: [522 540]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<echo>} {($ Id.VSub_DollarName patch_name)})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [
                    {<git>}
                    {<mailinfo>}
                    {(DQ ($ Id.VSub_DollarName tmp_msg))}
                    {(DQ ($ Id.VSub_DollarName tmp_patch))}
                  ]
                  redirects: [
                    (redir
                      op: <Id.Redir_Less '<'>
                      loc: (redir_loc.Fd fd:0)
                      arg: 
                        {
                          (DQ ($ Id.VSub_DollarName QUILT_PATCHES) <'/'> 
                            ($ Id.VSub_DollarName patch_name)
                          )
                        }
                    )
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_DollarName tmp_info))}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<3>})
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<test>} {<-s>} {(DQ ($ Id.VSub_DollarName tmp_patch))})
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (C {<echo>} {(DQ <'Patch is empty.  Was it split wrong?'>)})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'GIT_AUTHOR_NAME='>
                      name: GIT_AUTHOR_NAME
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<sed>} {<-ne>} {(SQ <'s/Author: //p'>)} 
                            {(DQ ($ Id.VSub_DollarName tmp_info))}
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [628]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'GIT_AUTHOR_EMAIL='>
                      name: GIT_AUTHOR_EMAIL
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<sed>} {<-ne>} {(SQ <'s/Email: //p'>)} 
                            {(DQ ($ Id.VSub_DollarName tmp_info))}
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [644]
                )
              ]
              redirects: []
            )
            (C {<export>} {<GIT_AUTHOR_NAME>} {<GIT_AUTHOR_EMAIL>})
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName GIT_AUTHOR_EMAIL))})
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName GIT_AUTHOR_NAME))})
                          ]
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (C {<Id.Lit_LBracket '['>} {<-n>} 
                                      {(DQ ($ Id.VSub_DollarName quilt_author))} {<Id.Lit_RBracket ']'>}
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.Sentence
                              child: 
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'GIT_AUTHOR_NAME='>
                                          name: GIT_AUTHOR_NAME
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ ($ Id.VSub_DollarName quilt_author_name))}
                                      spids: [709]
                                    )
                                  ]
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                            (command.Sentence
                              child: 
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'GIT_AUTHOR_EMAIL='>
                                          name: GIT_AUTHOR_EMAIL
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ ($ Id.VSub_DollarName quilt_author_email))}
                                      spids: [716]
                                    )
                                  ]
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          spids: [692 706]
                        )
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (C {<Id.Lit_LBracket '['>} {<-n>} 
                                      {(DQ ($ Id.VSub_DollarName dry_run))} {<Id.Lit_RBracket ']'>}
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.Sentence
                              child: 
                                (command.Simple
                                  words: [
                                    {<echo>}
                                    {(DQ <'No author found in '> ($ Id.VSub_DollarName patch_name))}
                                  ]
                                  redirects: [
                                    (redir
                                      op: <Id.Redir_GreatAnd '>&'>
                                      loc: (redir_loc.Fd fd:1)
                                      arg: {<2>}
                                    )
                                  ]
                                  more_env: []
                                  do_fork: T
                                )
                              terminator: <Id.Op_Semi _>
                            )
                            (command.Sentence
                              child: 
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'GIT_AUTHOR_NAME='>
                                          name: GIT_AUTHOR_NAME
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ <dry-run-not-found>)}
                                      spids: [751]
                                    )
                                  ]
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                            (command.Sentence
                              child: 
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'GIT_AUTHOR_EMAIL='>
                                          name: GIT_AUTHOR_EMAIL
                                        )
                                      op: assign_op.Equal
                                      rhs: {(DQ <dry-run-not-found>)}
                                      spids: [758]
                                    )
                                  ]
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          spids: [723 736]
                        )
                      ]
                      else_action: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [
                                {<echo>}
                                {(DQ <'No author found in '> ($ Id.VSub_DollarName patch_name))}
                              ]
                              redirects: [
                                (redir
                                  op: <Id.Redir_GreatAnd '>&'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<2>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                        (C {<echo>} {(DQ <--->)})
                        (C {<cat>} {($ Id.VSub_DollarName tmp_msg)})
                        (command.Sentence
                          child: (C {<printf>} {(DQ <'Author: '>)})
                          terminator: <Id.Op_Semi _>
                        )
                        (C {<read>} {<patch_author>})
                        (C {<echo>} {(DQ ($ Id.VSub_DollarName patch_author))})
                        (command.AndOr
                          ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
                          children: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'patch_author_name='>
                                      name: patch_author_name
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<expr>} {(DQ <z> ($ Id.VSub_DollarName patch_author))} 
                                            {<Id.Lit_Colon ':'>} {(SQ <'z\\(.*[^ ]\\) *<.*'>)}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [814]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'patch_author_email='>
                                      name: patch_author_email
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (C {<expr>} {(DQ <z> ($ Id.VSub_DollarName patch_author))} 
                                            {<Id.Lit_Colon ':'>} {(SQ <'.*<\\([^>]*\\)'>)}
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    }
                                  spids: [833]
                                )
                              ]
                              redirects: []
                            )
                            (C {<test>} {(SQ )} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} 
                              {(DQ ($ Id.VSub_DollarName patch_author_name))}
                            )
                            (C {<test>} {(SQ )} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} 
                              {(DQ ($ Id.VSub_DollarName patch_author_email))}
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_AUTHOR_NAME='>
                                      name: GIT_AUTHOR_NAME
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_DollarName patch_author_name))}
                                  spids: [882]
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'GIT_AUTHOR_EMAIL='>
                                      name: GIT_AUTHOR_EMAIL
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_DollarName patch_author_email))}
                                  spids: [890]
                                )
                              ]
                              redirects: []
                            )
                          ]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'GIT_AUTHOR_DATE='>
                      name: GIT_AUTHOR_DATE
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<sed>} {<-ne>} {(SQ <'s/Date: //p'>)} {(DQ ($ Id.VSub_DollarName tmp_info))})
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [902]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBJECT='> name:SUBJECT)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<sed>} {<-ne>} {(SQ <'s/Subject: //p'>)} 
                            {(DQ ($ Id.VSub_DollarName tmp_info))}
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [918]
                )
              ]
              redirects: []
            )
            (C {<export>} {<GIT_AUTHOR_DATE>} {<SUBJECT>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName SUBJECT))} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBJECT='> name:SUBJECT)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<echo>} {($ Id.VSub_DollarName patch_name)})
                                      (C {<sed>} {<-e>} {(SQ <'s/.patch$//'>)})
                                    ]
                                    negated: F
                                    stderr_indices: []
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [958]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [941 955]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName dry_run))} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DPipe]
                      children: [
                        (C {<git>} {<apply>} {<--index>} {<-C1>} 
                          {
                            (braced_var_sub
                              left: <Id.Left_DollarBrace '${'>
                              token: <Id.VSub_Name level>
                              var_name: level
                              suffix_op: 
                                (suffix_op.Unary
                                  op: <Id.VTest_ColonPlus _>
                                  arg_word: {(DQ ($ Id.VSub_DollarName level))}
                                )
                              right: <Id.Right_DollarBrace '}'>
                            )
                          } {(DQ ($ Id.VSub_DollarName tmp_patch))}
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tree='> name:tree)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: (C {<git>} {<write-tree>})
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [1020]
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'commit='> name:commit)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Pipeline
                                        children: [
                                          (command.Subshell
                                            child: 
                                              (command.CommandList
                                                children: [
                                                  (command.Sentence
                                                    child: 
                                                      (C {<echo>} {(DQ ($ Id.VSub_DollarName SUBJECT))})
                                                    terminator: <Id.Op_Semi _>
                                                  )
                                                  (command.Sentence
                                                    child: (C {<echo>})
                                                    terminator: <Id.Op_Semi _>
                                                  )
                                                  (C {<cat>} {(DQ ($ Id.VSub_DollarName tmp_msg))})
                                                ]
                                              )
                                            redirects: []
                                          )
                                          (C {<git>} {<commit-tree>} {($ Id.VSub_DollarName tree)} {<-p>} 
                                            {($ Id.VSub_DollarName commit)}
                                          )
                                        ]
                                        negated: F
                                        stderr_indices: []
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [1030]
                            )
                          ]
                          redirects: []
                        )
                        (C {<git>} {<update-ref>} {<-m>} 
                          {(DQ <'quiltimport: '> ($ Id.VSub_DollarName patch_name))} {<HEAD>} {($ Id.VSub_DollarName commit)}
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Exit exit>
                          arg_word: {<4>}
                        )
                      ]
                    )
                  ]
                  spids: [980 994]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
        )
      redirects: [
        (redir
          op: <Id.Redir_Less '3<'>
          loc: (redir_loc.Fd fd:3)
          arg: {(DQ ($ Id.VSub_DollarName QUILT_SERIES))}
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName tmp_dir)})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<5>})
      ]
    )
  ]
)