(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test_description) op: Equal rhs: {(SQ <'--reverse combines with --parents'>)} ) ] ) (C {(.)} {(./test-lib.sh)}) (command.FuncDef name: commit body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp Op_DAmp Op_DAmp] children: [ (C {(test_tick)}) (command.SimpleCommand words: [{(echo)} {($ VSub_Number '$1')}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(foo)})] ) (C {(git)} {(add)} {(foo)}) (C {(git)} {(commit)} {(-m)} {(DQ ($ VSub_Number '$1'))}) ] ) ] ) ) (C {(test_expect_success)} {(SQ <'set up --reverse example'>)} { (SQ <'\n'> <'\tcommit one &&\n'> <'\tgit tag root &&\n'> <'\tcommit two &&\n'> <'\tgit checkout -b side HEAD^ &&\n'> <'\tcommit three &&\n'> <'\tgit checkout master &&\n'> <'\tgit merge -s ours side &&\n'> <'\tcommit five\n'> <'\t'> ) } ) (C {(test_expect_success)} {(SQ <'--reverse --parents --full-history combines correctly'>)} { (SQ <'\n'> <'\tgit rev-list --parents --full-history master -- foo |\n'> <'\t\tperl -e "print reverse <>" > expected &&\n'> <'\tgit rev-list --reverse --parents --full-history master -- foo \\\n'> <'\t\t> actual &&\n'> <'\ttest_cmp actual expected\n'> <'\t'> ) } ) (C {(test_expect_success)} {(SQ <'--boundary does too'>)} { (SQ <'\n'> <'\tgit rev-list --boundary --parents --full-history master ^root -- foo |\n'> <'\t\tperl -e "print reverse <>" > expected &&\n'> <'\tgit rev-list --boundary --reverse --parents --full-history \\\n'> <'\t\tmaster ^root -- foo > actual &&\n'> <'\ttest_cmp actual expected\n'> <'\t'> ) } ) (C {(test_done)}) ] )