(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description) op: assign_op.Equal rhs: {(SQ <'--reverse combines with --parents'>)} spids: [4] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (command.ShFunction name: commit body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.AndOr ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp] children: [ (C {<test_tick>}) (command.Simple words: [{<echo>} {($ Id.VSub_Number 1)}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<foo>})] more_env: [] do_fork: T ) (C {<git>} {<add>} {<foo>}) (C {<git>} {<commit>} {<-m>} {(DQ ($ Id.VSub_Number 1))}) ] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (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>}) ] )