(command.CommandList
  children: [
    (command.ShAssignment
      left: <Id.Lit_VarLike 'test_description='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'test_description='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'messages from rebase operation'>)}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<'./test-lib.sh'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <setup>)}
        {
          (SQ <'\n'> <'\ttest_commit O fileO &&\n'> <'\ttest_commit X fileX &&\n'> 
            <'\ttest_commit A fileA &&\n'> <'\ttest_commit B fileB &&\n'> <'\ttest_commit Y fileY &&\n'> <'\n'> <'\tgit checkout -b topic O &&\n'> 
            <'\tgit cherry-pick A B &&\n'> <'\ttest_commit Z fileZ &&\n'> <'\tgit tag start\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <cat>
      more_env: []
      words: [{<cat>}]
      redirects: [
        (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expect>})
        (Redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.HereDoc
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'> ch:E) <OF>}
              here_end_tok: <Id.Undefined_Tok ''>
              stdin_parts: [
                <'Already applied: 0001 A\n'>
                <'Already applied: 0002 B\n'>
                <'Committed: 0003 Z\n'>
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase -m'>)}
        {
          (SQ <'\n'> <'\tgit rebase -m master >report &&\n'> 
            <'\tsed -n -e "/^Already applied: /p" \\\n'> <'\t\t-e "/^Committed: /p" report >actual &&\n'> <'\ttest_cmp expect actual\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase against master twice'>)}
        {
          (SQ <'\n'> <'\tgit rebase master >out &&\n'> 
            <'\ttest_i18ngrep "Current branch topic is up to date" out\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase against master twice with --force'>)}
        {
          (SQ <'\n'> <'\tgit rebase --force-rebase master >out &&\n'> 
            <'\ttest_i18ngrep "Current branch topic is up to date, rebase forced" out\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase against master twice from another branch'>)}
        {
          (SQ <'\n'> <'\tgit checkout topic^ &&\n'> <'\tgit rebase master topic >out &&\n'> 
            <'\ttest_i18ngrep "Current branch topic is up to date" out\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase fast-forward to master'>)}
        {
          (SQ <'\n'> <'\tgit checkout topic^ &&\n'> <'\tgit rebase topic >out &&\n'> 
            <'\ttest_i18ngrep "Fast-forwarded HEAD to topic" out\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase --stat'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard start &&\n'> 
            <'        git rebase --stat master >diffstat.txt &&\n'> <'        grep "^ fileX |  *1 +$" diffstat.txt\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase w/config rebase.stat'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard start &&\n'> <'        git config rebase.stat true &&\n'> 
            <'        git rebase master >diffstat.txt &&\n'> <'        grep "^ fileX |  *1 +$" diffstat.txt\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase -n overrides config rebase.stat config'>)}
        {
          (SQ <'\n'> <'\tgit reset --hard start &&\n'> <'        git config rebase.stat true &&\n'> 
            <'        git rebase -n master >diffstat.txt &&\n'> <'        ! grep "^ fileX |  *1 +$" diffstat.txt\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'rebase --onto outputs the invalid ref'>)}
        {
          (SQ <'\n'> <'\ttest_must_fail git rebase --onto invalid-ref HEAD HEAD 2>err &&\n'> 
            <'\ttest_i18ngrep "invalid-ref" err\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_done>
      more_env: []
      words: [{<test_done>}]
      redirects: []
      do_fork: T
    )
  ]
)