(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 <'Test reflog display routines'>)} spids: [4] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (C {<test_expect_success>} {(SQ <setup>)} { (SQ <'\n'> <'\techo content >file &&\n'> <'\tgit add file &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -m one\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 41 stdin_parts: [ <'Reflog: HEAD@{0} (C O Mitter <committer@example.com>)\n'> <'Reflog message: commit (initial): one\n'> ] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'log -g shows reflog headers'>)} { (SQ <'\n'> <'\tgit log -g -1 >tmp &&\n'> <'\tgrep ^Reflog <tmp >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 67 stdin_parts: [<'e46513e HEAD@{0}: commit (initial): one\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'oneline reflog format'>)} {(SQ <'\n'> <'\tgit log -g -1 --oneline >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (C {<test_expect_success>} {(SQ <'reflog default format'>)} {(SQ <'\n'> <'\tgit reflog -1 >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 110 stdin_parts: [ <'commit e46513e\n'> <'Reflog: HEAD@{0} (C O Mitter <committer@example.com>)\n'> <'Reflog message: commit (initial): one\n'> <'Author: A U Thor <author@example.com>\n'> <'\n'> <' one\n'> ] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'override reflog default format'>)} {(SQ <'\n'> <'\tgit reflog --format=short -1 >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 136 stdin_parts: [ < 'Reflog: HEAD@{Thu Apr 7 15:13:13 2005 -0700} (C O Mitter <committer@example.com>)\n' > <'Reflog message: commit (initial): one\n'> ] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'using @{now} syntax shows reflog date (multiline)'>)} { (SQ <'\n'> <'\tgit log -g -1 HEAD@{now} >tmp &&\n'> <'\tgrep ^Reflog <tmp >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 162 stdin_parts: [<'e46513e HEAD@{Thu Apr 7 15:13:13 2005 -0700}: commit (initial): one\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'using @{now} syntax shows reflog date (oneline)'>)} { (SQ <'\n'> <'\tgit log -g -1 --oneline HEAD@{now} >actual &&\n'> <'\ttest_cmp expect actual\n'>) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 187 stdin_parts: [<'HEAD@{Thu Apr 7 15:13:13 2005 -0700}\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'using @{now} syntax shows reflog date (format=%gd)'>)} { (SQ <'\n'> <'\tgit log -g -1 --format=%gd HEAD@{now} >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 213 stdin_parts: [ < 'Reflog: HEAD@{Thu Apr 7 15:13:13 2005 -0700} (C O Mitter <committer@example.com>)\n' > <'Reflog message: commit (initial): one\n'> ] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'using --date= shows reflog date (multiline)'>)} { (SQ <'\n'> <'\tgit log -g -1 --date=default >tmp &&\n'> <'\tgrep ^Reflog <tmp >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 239 stdin_parts: [<'e46513e HEAD@{Thu Apr 7 15:13:13 2005 -0700}: commit (initial): one\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'using --date= shows reflog date (oneline)'>)} { (SQ <'\n'> <'\tgit log -g -1 --oneline --date=default >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 264 stdin_parts: [<'HEAD@{1112911993 -0700}\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'using --date= shows reflog date (format=%gd)'>)} { (SQ <'\n'> <'\tgit log -g -1 --format=%gd --date=raw >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 290 stdin_parts: [ <'Reflog: HEAD@{0} (C O Mitter <committer@example.com>)\n'> <'Reflog message: commit (initial): one\n'> ] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'log.date does not invoke "--date" magic (multiline)'>)} { (SQ <'\n'> <'\ttest_config log.date raw &&\n'> <'\tgit log -g -1 >tmp &&\n'> <'\tgrep ^Reflog <tmp >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 317 stdin_parts: [<'e46513e HEAD@{0}: commit (initial): one\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'log.date does not invoke "--date" magic (oneline)'>)} { (SQ <'\n'> <'\ttest_config log.date raw &&\n'> <'\tgit log -g -1 --oneline >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 343 stdin_parts: [<'HEAD@{0}\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'log.date does not invoke "--date" magic (format=%gd)'>)} { (SQ <'\n'> <'\ttest_config log.date raw &&\n'> <'\tgit log -g -1 --format=%gd >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple 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: {(SQ <EOF>)} here_end_span_id: 369 stdin_parts: [<'HEAD@{0}\n'>] ) ) ] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'--date magic does not override explicit @{0} syntax'>)} { (SQ <'\n'> <'\tgit log -g -1 --format=%gd --date=raw HEAD@{0} >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (command.Simple words: [{<Id.Lit_Colon ':'>}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expect>})] more_env: [] do_fork: T ) (C {<test_expect_success>} {(SQ <'empty reflog file'>)} { (SQ <'\n'> <'\tgit branch empty &&\n'> <'\tgit reflog expire --expire=all refs/heads/empty &&\n'> <'\n'> <'\tgit log -g empty >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {<test_expect_success>} {(SQ <'git log -g -p shows diffs vs. parents'>)} { (SQ <'\n'> <'\ttest_commit two &&\n'> <'\tgit branch flipflop &&\n'> <'\tgit update-ref refs/heads/flipflop -m flip1 HEAD^ &&\n'> <'\tgit update-ref refs/heads/flipflop -m flop1 HEAD &&\n'> <'\tgit update-ref refs/heads/flipflop -m flip2 HEAD^ &&\n'> <'\tgit log -g -p flipflop >reflog &&\n'> <'\tgrep -v ^Reflog reflog >actual &&\n'> <'\tgit log -1 -p HEAD^ >log.one &&\n'> <'\tgit log -1 -p HEAD >log.two &&\n'> <'\t(\n'> <'\t\tcat log.one; echo\n'> <'\t\tcat log.two; echo\n'> <'\t\tcat log.one; echo\n'> <'\t\tcat log.two\n'> <'\t) >expect &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {<test_expect_success>} {(SQ <'reflog exists works'>)} { (SQ <'\n'> <'\tgit reflog exists refs/heads/master &&\n'> <'\t! git reflog exists refs/heads/nonexistent\n'> ) } ) (C {<test_done>}) ] )