(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:OPTIONS_KEEPDASHDASH spids:[3])
          op: Equal
          rhs: (word.EmptyWord)
          spids: [3]
        )
      ]
      spids: [3]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:OPTIONS_STUCKLONG spids:[5])
          op: Equal
          rhs: (word.EmptyWord)
          spids: [5]
        )
      ]
      spids: [5]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:OPTIONS_SPEC spids:[7])
          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]
        )
      ]
      spids: [7]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:SUBDIRECTORY_ON spids:[18])
          op: Equal
          rhs: {(Yes)}
          spids: [18]
        )
      ]
      spids: [18]
    )
    (C {(.)} {(git-sh-setup)})
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:dry_run spids:[26])
          op: Equal
          rhs: {(DQ )}
          spids: [26]
        )
      ]
      spids: [26]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:quilt_author spids:[30])
          op: Equal
          rhs: {(DQ )}
          spids: [30]
        )
      ]
      spids: [30]
    )
    (command.WhileUntil
      keyword: <KW_While while>
      cond: [(C {(test)} {($ VSub_Pound '$#')} {(KW_Bang '!') (Lit_Other '=')} {(0)})]
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {(DQ ($ VSub_Number '$1'))}
              arms: [
                (case_arm
                  pat_list: [{(--author)}]
                  action: [
                    (C {(shift)})
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:quilt_author spids:[64])
                          op: Equal
                          rhs: {(DQ ($ VSub_Number '$1'))}
                          spids: [64]
                        )
                      ]
                      spids: [64]
                    )
                  ]
                  spids: [57 58 70 16777215]
                )
                (case_arm
                  pat_list: [{(-n)} {(--dry-run)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:dry_run spids:[79])
                          op: Equal
                          rhs: {(1)}
                          spids: [79]
                        )
                      ]
                      spids: [79]
                    )
                  ]
                  spids: [73 76 83 16777215]
                )
                (case_arm
                  pat_list: [{(--patches)}]
                  action: [
                    (C {(shift)})
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:QUILT_PATCHES spids:[93])
                          op: Equal
                          rhs: {(DQ ($ VSub_Number '$1'))}
                          spids: [93]
                        )
                      ]
                      spids: [93]
                    )
                  ]
                  spids: [86 87 99 16777215]
                )
                (case_arm
                  pat_list: [{(--series)}]
                  action: [
                    (C {(shift)})
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:QUILT_SERIES spids:[109])
                          op: Equal
                          rhs: {(DQ ($ VSub_Number '$1'))}
                          spids: [109]
                        )
                      ]
                      spids: [109]
                    )
                  ]
                  spids: [102 103 115 16777215]
                )
                (case_arm
                  pat_list: [{(--)}]
                  action: [(C {(shift)}) (command.ControlFlow token:<ControlFlow_Break break>)]
                  spids: [118 119 126 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [(C {(usage)})]
                  spids: [129 130 136 16777215]
                )
              ]
              spids: [48 54 139]
            )
            (C {(shift)})
          ]
          spids: [45 144]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$quilt_author'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.AndOr
              ops: [Op_DAmp Op_DAmp Op_DAmp Op_DPipe]
              children: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:quilt_author_name spids:[167])
                      op: Equal
                      rhs: 
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [
                                  (C {(expr)} {(DQ (z) ($ VSub_DollarName '$quilt_author'))} 
                                    {(Lit_Other ':')} {(SQ <'z\\(.*[^ ]\\) *<.*'>)}
                                  )
                                ]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [168 181]
                          )
                        }
                      spids: [167]
                    )
                  ]
                  spids: [167]
                )
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:quilt_author_email spids:[186])
                      op: Equal
                      rhs: 
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [
                                  (C {(expr)} {(DQ (z) ($ VSub_DollarName '$quilt_author'))} 
                                    {(Lit_Other ':')} {(SQ <'.*<\\([^>]*\\)'>)}
                                  )
                                ]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [187 200]
                          )
                        }
                      spids: [186]
                    )
                  ]
                  spids: [186]
                )
                (C {(test)} {(SQ )} {(KW_Bang '!') (Lit_Other '=')} 
                  {(DQ ($ VSub_DollarName '$quilt_author_name'))}
                )
                (C {(test)} {(SQ )} {(KW_Bang '!') (Lit_Other '=')} 
                  {(DQ ($ VSub_DollarName '$quilt_author_email'))}
                )
                (C {(die)} {(DQ ('malformed --author parameter'))})
              ]
            )
          ]
          spids: [16777215 164]
        )
      ]
      spids: [16777215 241]
    )
    (C {(Lit_Other ':')} 
      {
        (word_part.BracedVarSub
          token: <VSub_Name QUILT_PATCHES>
          suffix_op: (suffix_op.StringUnary op_id:VTest_ColonEquals arg_word:{(patches)})
          spids: [249 253]
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.Pipeline
                  children: [
                    (C {(Lit_Other '[')} {(-d)} {(DQ ($ VSub_DollarName '$QUILT_PATCHES'))} 
                      {(Lit_Other ']')}
                    )
                  ]
                  negated: T
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} 
              {
                (DQ ('The ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) 
                  ($ VSub_DollarName '$QUILT_PATCHES') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' directory does not exist.')
                )
              }
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 271]
        )
      ]
      spids: [16777215 289]
    )
    (C {(Lit_Other ':')} 
      {
        (word_part.BracedVarSub
          token: <VSub_Name QUILT_SERIES>
          suffix_op: 
            (suffix_op.StringUnary
              op_id: VTest_ColonEquals
              arg_word: {($ VSub_DollarName '$QUILT_PATCHES') (Lit_Slash /) (series)}
            )
          spids: [297 303]
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.Pipeline
                  children: [
                    (C {(Lit_Other '[')} {(-e)} {(DQ ($ VSub_DollarName '$QUILT_SERIES'))} 
                      {(Lit_Other ']')}
                    )
                  ]
                  negated: T
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} 
              {
                (DQ ('The ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) 
                  ($ VSub_DollarName '$QUILT_SERIES') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' file does not exist.')
                )
              }
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 321]
        )
      ]
      spids: [16777215 339]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tmp_dir spids:[345])
          op: Equal
          rhs: {(DQ ($ VSub_DollarName '$GIT_DIR')) (/rebase-apply)}
          spids: [345]
        )
      ]
      spids: [345]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tmp_msg spids:[351])
          op: Equal
          rhs: {(DQ ($ VSub_DollarName '$tmp_dir') (/msg))}
          spids: [351]
        )
      ]
      spids: [351]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tmp_patch spids:[357])
          op: Equal
          rhs: {(DQ ($ VSub_DollarName '$tmp_dir') (/patch))}
          spids: [357]
        )
      ]
      spids: [357]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tmp_info spids:[363])
          op: Equal
          rhs: {(DQ ($ VSub_DollarName '$tmp_dir') (/info))}
          spids: [363]
        )
      ]
      spids: [363]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:commit spids:[374])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: (command.CommandList children:[(C {(git)} {(rev-parse)} {(HEAD)})])
                left_token: <Left_CommandSub '$('>
                spids: [375 381]
              )
            }
          spids: [374]
        )
      ]
      spids: [374]
    )
    (command.AndOr
      ops: [Op_DPipe]
      children: [
        (C {(mkdir)} {($ VSub_DollarName '$tmp_dir')})
        (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)})
      ]
    )
    (command.WhileUntil
      keyword: <KW_While while>
      cond: [
        (command.SimpleCommand
          words: [{(read)} {(patch_name)} {(level)} {(garbage)}]
          redirects: [(redir.Redir op:<Redir_LessAnd '<&'> fd:16777215 arg_word:{(3)})]
        )
      ]
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {(DQ ($ VSub_DollarName '$patch_name'))}
              arms: [
                (case_arm
                  pat_list: [{(SQ )} {(SQ <'#'>) (Lit_Other '*')}]
                  action: [(command.ControlFlow token:<ControlFlow_Continue continue>)]
                  spids: [418 425 428 16777215]
                )
              ]
              spids: [410 416 430]
            )
            (command.Case
              to_match: {(DQ ($ VSub_DollarName '$level'))}
              arms: [
                (case_arm
                  pat_list: [{(-p) (Lit_Other '*')}]
                  spids: [442 444 446 16777215]
                )
                (case_arm
                  pat_list: [{(SQ )} {(SQ <'#'>) (Lit_Other '*')}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:level spids:[459])
                          op: Equal
                          rhs: (word.EmptyWord)
                          spids: [459]
                        )
                      ]
                      spids: [459]
                    )
                  ]
                  spids: [449 456 460 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [
                    (C {(echo)} {(DQ ('unable to parse patch level, ignoring it.'))})
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:level spids:[474])
                          op: Equal
                          rhs: (word.EmptyWord)
                          spids: [474]
                        )
                      ]
                      spids: [474]
                    )
                  ]
                  spids: [463 464 475 16777215]
                )
              ]
              spids: [433 439 478]
            )
            (command.Case
              to_match: {(DQ ($ VSub_DollarName '$garbage'))}
              arms: [
                (case_arm
                  pat_list: [{(SQ )} {(SQ <'#'>) (Lit_Other '*')}]
                  spids: [490 497 498 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [
                    (C {(echo)} 
                      {
                        (DQ ('trailing garbage found in series file: ') ($ VSub_DollarName '$garbage'))
                      }
                    )
                    (command.ControlFlow
                      token: <ControlFlow_Exit exit>
                      arg_word: {(1)}
                    )
                  ]
                  spids: [501 502 516 16777215]
                )
              ]
              spids: [481 487 519]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [
                            (C {(Lit_Other '[')} {(-f)} 
                              {
                                (DQ ($ VSub_DollarName '$QUILT_PATCHES') (/) 
                                  ($ VSub_DollarName '$patch_name')
                                )
                              } {(Lit_Other ']')}
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(echo)} {(DQ ($ VSub_DollarName '$patch_name') (" doesn't exist. Skipping."))})
                    (command.ControlFlow token:<ControlFlow_Continue continue>)
                  ]
                  spids: [16777215 540]
                )
              ]
              spids: [16777215 554]
            )
            (C {(echo)} {($ VSub_DollarName '$patch_name')})
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (command.SimpleCommand
                  words: [
                    {(git)}
                    {(mailinfo)}
                    {(DQ ($ VSub_DollarName '$tmp_msg'))}
                    {(DQ ($ VSub_DollarName '$tmp_patch'))}
                  ]
                  redirects: [
                    (redir.Redir
                      op: <Redir_Less '<'>
                      fd: 16777215
                      arg_word: 
                        {
                          (DQ ($ VSub_DollarName '$QUILT_PATCHES') (/) 
                            ($ VSub_DollarName '$patch_name')
                          )
                        }
                    )
                    (redir.Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {(DQ ($ VSub_DollarName '$tmp_info'))}
                    )
                  ]
                )
                (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)})
              ]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(test)} {(-s)} {(DQ ($ VSub_DollarName '$tmp_patch'))})
                (command.BraceGroup
                  children: [
                    (C {(echo)} {(DQ ('Patch is empty.  Was it split wrong?'))})
                    (command.ControlFlow
                      token: <ControlFlow_Exit exit>
                      arg_word: {(1)}
                    )
                  ]
                  spids: [605]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:GIT_AUTHOR_NAME spids:[628])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (C {(sed)} {(-ne)} {(SQ <'s/Author: //p'>)} 
                                {(DQ ($ VSub_DollarName '$tmp_info'))}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [629 641]
                      )
                    }
                  spids: [628]
                )
              ]
              spids: [628]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:GIT_AUTHOR_EMAIL spids:[644])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (C {(sed)} {(-ne)} {(SQ <'s/Email: //p'>)} 
                                {(DQ ($ VSub_DollarName '$tmp_info'))}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [645 657]
                      )
                    }
                  spids: [644]
                )
              ]
              spids: [644]
            )
            (C {(export)} {(GIT_AUTHOR_NAME)} {(GIT_AUTHOR_EMAIL)})
            (command.WhileUntil
              keyword: <KW_While while>
              cond: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Op_DAmp]
                      children: [
                        (C {(test)} {(-z)} {(DQ ($ VSub_DollarName '$GIT_AUTHOR_EMAIL'))})
                        (C {(test)} {(-z)} {(DQ ($ VSub_DollarName '$GIT_AUTHOR_NAME'))})
                      ]
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$quilt_author'))} 
                                  {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Sentence
                              child: 
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:GIT_AUTHOR_NAME spids:[709])
                                      op: Equal
                                      rhs: {(DQ ($ VSub_DollarName '$quilt_author_name'))}
                                      spids: [709]
                                    )
                                  ]
                                  spids: [709]
                                )
                              terminator: <Op_Semi ';'>
                            )
                            (command.Sentence
                              child: 
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:GIT_AUTHOR_EMAIL spids:[716])
                                      op: Equal
                                      rhs: {(DQ ($ VSub_DollarName '$quilt_author_email'))}
                                      spids: [716]
                                    )
                                  ]
                                  spids: [716]
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          spids: [16777215 706]
                        )
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$dry_run'))} 
                                  {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Sentence
                              child: 
                                (command.SimpleCommand
                                  words: [
                                    {(echo)}
                                    {(DQ ('No author found in ') ($ VSub_DollarName '$patch_name'))}
                                  ]
                                  redirects: [
                                    (redir.Redir
                                      op: <Redir_GreatAnd '>&'>
                                      fd: 16777215
                                      arg_word: {(2)}
                                    )
                                  ]
                                )
                              terminator: <Op_Semi ';'>
                            )
                            (command.Sentence
                              child: 
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:GIT_AUTHOR_NAME spids:[751])
                                      op: Equal
                                      rhs: {(DQ (dry-run-not-found))}
                                      spids: [751]
                                    )
                                  ]
                                  spids: [751]
                                )
                              terminator: <Op_Semi ';'>
                            )
                            (command.Sentence
                              child: 
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:GIT_AUTHOR_EMAIL spids:[758])
                                      op: Equal
                                      rhs: {(DQ (dry-run-not-found))}
                                      spids: [758]
                                    )
                                  ]
                                  spids: [758]
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          spids: [723 736]
                        )
                      ]
                      else_action: [
                        (command.Sentence
                          child: 
                            (command.SimpleCommand
                              words: [
                                {(echo)}
                                {(DQ ('No author found in ') ($ VSub_DollarName '$patch_name'))}
                              ]
                              redirects: [
                                (redir.Redir
                                  op: <Redir_GreatAnd '>&'>
                                  fd: 16777215
                                  arg_word: {(2)}
                                )
                              ]
                            )
                          terminator: <Op_Semi ';'>
                        )
                        (C {(echo)} {(DQ (---))})
                        (C {(cat)} {($ VSub_DollarName '$tmp_msg')})
                        (command.Sentence
                          child: (C {(printf)} {(DQ ('Author: '))})
                          terminator: <Op_Semi ';'>
                        )
                        (C {(read)} {(patch_author)})
                        (C {(echo)} {(DQ ($ VSub_DollarName '$patch_author'))})
                        (command.AndOr
                          ops: [Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp]
                          children: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:patch_author_name spids:[814])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.CommandSubPart
                                        command_list: 
                                          (command.CommandList
                                            children: [
                                              (C {(expr)} {(DQ (z) ($ VSub_DollarName '$patch_author'))} 
                                                {(Lit_Other ':')} {(SQ <'z\\(.*[^ ]\\) *<.*'>)}
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [815 828]
                                      )
                                    }
                                  spids: [814]
                                )
                              ]
                              spids: [814]
                            )
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:patch_author_email spids:[833])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.CommandSubPart
                                        command_list: 
                                          (command.CommandList
                                            children: [
                                              (C {(expr)} {(DQ (z) ($ VSub_DollarName '$patch_author'))} 
                                                {(Lit_Other ':')} {(SQ <'.*<\\([^>]*\\)'>)}
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [834 847]
                                      )
                                    }
                                  spids: [833]
                                )
                              ]
                              spids: [833]
                            )
                            (C {(test)} {(SQ )} {(KW_Bang '!') (Lit_Other '=')} 
                              {(DQ ($ VSub_DollarName '$patch_author_name'))}
                            )
                            (C {(test)} {(SQ )} {(KW_Bang '!') (Lit_Other '=')} 
                              {(DQ ($ VSub_DollarName '$patch_author_email'))}
                            )
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:GIT_AUTHOR_NAME spids:[882])
                                  op: Equal
                                  rhs: {(DQ ($ VSub_DollarName '$patch_author_name'))}
                                  spids: [882]
                                )
                              ]
                              spids: [882]
                            )
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:GIT_AUTHOR_EMAIL spids:[890])
                                  op: Equal
                                  rhs: {(DQ ($ VSub_DollarName '$patch_author_email'))}
                                  spids: [890]
                                )
                              ]
                              spids: [890]
                            )
                          ]
                        )
                      ]
                      spids: [765 896]
                    )
                  ]
                  spids: [689 899]
                )
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:GIT_AUTHOR_DATE spids:[902])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (C {(sed)} {(-ne)} {(SQ <'s/Date: //p'>)} 
                                {(DQ ($ VSub_DollarName '$tmp_info'))}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [903 915]
                      )
                    }
                  spids: [902]
                )
              ]
              spids: [902]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:SUBJECT spids:[918])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (C {(sed)} {(-ne)} {(SQ <'s/Subject: //p'>)} 
                                {(DQ ($ VSub_DollarName '$tmp_info'))}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [919 931]
                      )
                    }
                  spids: [918]
                )
              ]
              spids: [918]
            )
            (C {(export)} {(GIT_AUTHOR_DATE)} {(SUBJECT)})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_DollarName '$SUBJECT'))} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:SUBJECT spids:[958])
                          op: Equal
                          rhs: 
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [
                                      (command.Pipeline
                                        children: [
                                          (C {(echo)} {($ VSub_DollarName '$patch_name')})
                                          (C {(sed)} {(-e)} {(SQ <'s/.patch$//'>)})
                                        ]
                                        negated: F
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [959 973]
                              )
                            }
                          spids: [958]
                        )
                      ]
                      spids: [958]
                    )
                  ]
                  spids: [16777215 955]
                )
              ]
              spids: [16777215 976]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_DollarName '$dry_run'))} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.AndOr
                      ops: [Op_DAmp Op_DAmp Op_DAmp Op_DPipe]
                      children: [
                        (C {(git)} {(apply)} {(--index)} {(-C1)} 
                          {
                            (word_part.BracedVarSub
                              token: <VSub_Name level>
                              suffix_op: 
                                (suffix_op.StringUnary
                                  op_id: VTest_ColonPlus
                                  arg_word: {(DQ ($ VSub_DollarName '$level'))}
                                )
                              spids: [1005 1011]
                            )
                          } {(DQ ($ VSub_DollarName '$tmp_patch'))}
                        )
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:tree spids:[1020])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.CommandSubPart
                                    command_list: 
                                      (command.CommandList
                                        children: [(C {(git)} {(write-tree)})]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [1021 1025]
                                  )
                                }
                              spids: [1020]
                            )
                          ]
                          spids: [1020]
                        )
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:commit spids:[1030])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.CommandSubPart
                                    command_list: 
                                      (command.CommandList
                                        children: [
                                          (command.Pipeline
                                            children: [
                                              (command.Subshell
                                                child: 
                                                  (command.CommandList
                                                    children: [
                                                      (command.Sentence
                                                        child: 
                                                          (C {(echo)} 
                                                            {(DQ ($ VSub_DollarName '$SUBJECT'))}
                                                          )
                                                        terminator: <Op_Semi ';'>
                                                      )
                                                      (command.Sentence
                                                        child: (C {(echo)})
                                                        terminator: <Op_Semi ';'>
                                                      )
                                                      (C {(cat)} {(DQ ($ VSub_DollarName '$tmp_msg'))})
                                                    ]
                                                  )
                                                spids: [1033 1049]
                                              )
                                              (C {(git)} {(commit-tree)} {($ VSub_DollarName '$tree')} 
                                                {(-p)} {($ VSub_DollarName '$commit')}
                                              )
                                            ]
                                            negated: F
                                          )
                                        ]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [1031 1062]
                                  )
                                }
                              spids: [1030]
                            )
                          ]
                          spids: [1030]
                        )
                        (C {(git)} {(update-ref)} {(-m)} 
                          {(DQ ('quiltimport: ') ($ VSub_DollarName '$patch_name'))} {(HEAD)} {($ VSub_DollarName '$commit')}
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Exit exit>
                          arg_word: {(4)}
                        )
                      ]
                    )
                  ]
                  spids: [16777215 994]
                )
              ]
              spids: [16777215 1089]
            )
          ]
          spids: [407 1091]
        )
      redirects: [
        (redir.Redir
          op: <Redir_Less '3<'>
          fd: 3
          arg_word: {(DQ ($ VSub_DollarName '$QUILT_SERIES'))}
        )
      ]
    )
    (command.AndOr
      ops: [Op_DPipe]
      children: [
        (C {(rm)} {(-rf)} {($ VSub_DollarName '$tmp_dir')})
        (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(5)})
      ]
    )
  ]
)