(CommandList
  children: [
    (C {(set)} {(-eu)})
    (FuncDef
      name: git_get_branch
      body: (BraceGroup children:[(C {(git)} {(symbolic-ref)} {(--short)} {(HEAD)})] spids:[93])
      spids: [87 92]
    )
    (FuncDef
      name: git_commit_msg
      body: 
        (BraceGroup
          children: [
            (C {(git)} {(show)} {(-s)} 
              {(--pretty) (Lit_Other "=") (format) (Lit_Other ":") (Lit_Other "%") (B)} {(DQ ($ VSub_At "$@"))}
            )
          ]
          spids: [116]
        )
      spids: [110 115]
    )
    (FuncDef
      name: get_release_candidate
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [
                        {(git)}
                        {(notes)}
                        {(--ref) (Lit_Other "=") (release-candidate)}
                        {(show)}
                        {(DQ ($ VSub_At "$@"))}
                      ]
                      redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[165])]
                    )
                    (C {(xargs)} {(echo)})
                  ]
                  negated: False
                )
                (C {(true)})
              ]
              op_id: Op_DPipe
            )
          ]
          spids: [148]
        )
      spids: [142 147]
    )
    (FuncDef
      name: get_release_name
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [
                        {(git)}
                        {(notes)}
                        {(--ref) (Lit_Other "=") (release)}
                        {(show)}
                        {(DQ ($ VSub_At "$@"))}
                      ]
                      redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[207])]
                    )
                    (C {(xargs)} {(echo)})
                  ]
                  negated: False
                )
                (C {(true)})
              ]
              op_id: Op_DPipe
            )
          ]
          spids: [190]
        )
      spids: [184 189]
    )
    (FuncDef
      name: get_release_branch
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (LhsName name:branch_name)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: (CommandList children:[(C {(git_get_branch)})])
                        left_token: <Left_CommandSub "$(">
                        spids: [247 249]
                      )
                    }
                  spids: [246]
                )
              ]
              spids: [244]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other "[")} {(-z)} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(get_release_name)})])
                                left_token: <Left_CommandSub "$(">
                                spids: [259 261]
                              )
                            )
                          } {(-o)} {(-z)} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(get_release_candidate)})])
                                left_token: <Left_CommandSub "$(">
                                spids: [269 271]
                              )
                            )
                          } {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ("Not a release branch: ") (${ VSub_Name branch_name) (.))}]
                      redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[290])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 277]
                )
              ]
              spids: [-1 299]
            )
            (C {(echo)} {(DQ (${ VSub_Name branch_name))})
          ]
          spids: [241]
        )
      spids: [235 240]
    )
  ]
)