(command.CommandList children: [ (command.FuncDef name: git_rebase__am body: (command.BraceGroup children: [ (command.Case to_match: {(DQ ($ VSub_DollarName '$action'))} arms: [ (case_arm pat_list: [{(ControlFlow_Continue continue)}] action: [ (command.AndOr ops: [Op_DAmp] children: [ (C {(git)} {(am)} {(--resolved)} {(--resolvemsg) (Lit_Other '=') (DQ ($ VSub_DollarName '$resolvemsg'))} { (word_part.BracedVarSub token: <VSub_Name gpg_sign_opt> suffix_op: (suffix_op.Unary op_id: VTest_ColonPlus arg_word: {(DQ ($ VSub_DollarName '$gpg_sign_opt'))} ) ) } ) (C {(move_to_original_branch)}) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (case_arm pat_list: [{(skip)}] action: [ (command.AndOr ops: [Op_DAmp] children: [ (C {(git)} {(am)} {(--skip)} {(--resolvemsg) (Lit_Other '=') (DQ ($ VSub_DollarName '$resolvemsg'))} ) (C {(move_to_original_branch)}) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] ) ] ) (command.If arms: [ (if_arm cond: [(C {(test)} {(-z)} {(DQ ($ VSub_DollarName '$rebase_root'))})] action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:revisions) op: Equal rhs: {($ VSub_DollarName '$upstream') (...) ($ VSub_DollarName '$orig_head')} ) ] ) ] ) ] else_action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:revisions) op: Equal rhs: {($ VSub_DollarName '$onto') (...) ($ VSub_DollarName '$orig_head')} ) ] ) ] ) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:ret) op:Equal rhs:{(0)})] ) (command.If arms: [ (if_arm cond: [(C {(test)} {(-n)} {(DQ ($ VSub_DollarName '$keep_empty'))})] action: [ (C {(git)} {(cherry-pick)} { (word_part.BracedVarSub token: <VSub_Name gpg_sign_opt> suffix_op: (suffix_op.Unary op_id: VTest_ColonPlus arg_word: {(DQ ($ VSub_DollarName '$gpg_sign_opt'))} ) ) } {(--allow-empty)} {(--right-only)} {(DQ ($ VSub_DollarName '$revisions'))} { (word_part.BracedVarSub token: <VSub_Name restrict_revision> suffix_op: (suffix_op.Unary op_id: VTest_Plus arg_word: {('^') ($ VSub_DollarName '$restrict_revision')} ) ) } ) (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ret) op: Equal rhs: {($ VSub_QMark '$?')} ) ] ) ] ) ] else_action: [ (C {(rm)} {(-f)} {(DQ ($ VSub_DollarName '$GIT_DIR') (/rebased-patches))}) (command.Simple words: [ {(git)} {(format-patch)} {(-k)} {(--stdout)} {(--full-index)} {(--cherry-pick)} {(--right-only)} {(--src-prefix) (Lit_Other '=') (a/)} {(--dst-prefix) (Lit_Other '=') (b/)} {(--no-renames)} {(--no-cover-letter)} {(DQ ($ VSub_DollarName '$revisions'))} { (word_part.BracedVarSub token: <VSub_Name restrict_revision> suffix_op: (suffix_op.Unary op_id: VTest_Plus arg_word: {('^') ($ VSub_DollarName '$restrict_revision')} ) ) } ] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$GIT_DIR') (/rebased-patches))} ) ] ) (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ret) op: Equal rhs: {($ VSub_QMark '$?')} ) ] ) (command.If arms: [ (if_arm cond: [ (C {(test)} {(0)} {(KW_Bang '!') (Lit_Other '=')} {($ VSub_DollarName '$ret')}) ] action: [ (C {(rm)} {(-f)} {(DQ ($ VSub_DollarName '$GIT_DIR') (/rebased-patches))}) (command.Case to_match: {(DQ ($ VSub_DollarName '$head_name'))} arms: [ (case_arm pat_list: [{(refs/heads/) (Lit_Star '*')}] action: [ (C {(git)} {(checkout)} {(-q)} {(DQ ($ VSub_DollarName '$head_name'))}) ] ) (case_arm pat_list: [{(Lit_Star '*')}] action: [ (C {(git)} {(checkout)} {(-q)} {(DQ ($ VSub_DollarName '$orig_head'))}) ] ) ] ) (command.Simple words: [{(cat)}] redirects: [ (redir.Redir op: <Redir_GreatAnd '>&'> fd: 16777215 arg_word: {(2)} ) (redir.HereDoc op: <Redir_DLessDash '<<-'> fd: 16777215 here_begin: {(EOF)} here_end_span_id: 388 stdin_parts: [ ('\n') ('git encountered an error while preparing the patches to replay\n') ('these revisions:\n') ('\n') (' ') ($ VSub_DollarName '$revisions') ('\n') ('\n') ('As a result, git cannot rebase them.\n') ] ) ] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {($ VSub_DollarName '$ret')} ) ] ) ] ) (command.Simple words: [ {(git)} {(am)} {($ VSub_DollarName '$git_am_opt')} {(--rebasing)} {(--resolvemsg) (Lit_Other '=') (DQ ($ VSub_DollarName '$resolvemsg'))} { (word_part.BracedVarSub token: <VSub_Name gpg_sign_opt> suffix_op: (suffix_op.Unary op_id: VTest_ColonPlus arg_word: {(DQ ($ VSub_DollarName '$gpg_sign_opt'))} ) ) } ] redirects: [ (redir.Redir op: <Redir_Less '<'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$GIT_DIR') (/rebased-patches))} ) ] ) (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ret) op: Equal rhs: {($ VSub_QMark '$?')} ) ] ) (C {(rm)} {(-f)} {(DQ ($ VSub_DollarName '$GIT_DIR') (/rebased-patches))}) ] ) (command.If arms: [ (if_arm cond: [ (C {(test)} {(0)} {(KW_Bang '!') (Lit_Other '=')} {($ VSub_DollarName '$ret')}) ] action: [ (command.AndOr ops: [Op_DAmp] children: [ (C {(test)} {(-d)} {(DQ ($ VSub_DollarName '$state_dir'))}) (C {(write_basic_state)}) ] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {($ VSub_DollarName '$ret')} ) ] ) ] ) (C {(move_to_original_branch)}) ] ) ) (C {(git_rebase__am)}) ] )