(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <'Test reflog display routines'>)} spids: [4] ) ] spids: [4] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[31]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('Reflog: HEAD@{0} (C O Mitter <committer@example.com>)\n') ('Reflog message: commit (initial): one\n') } do_expansion: False here_end: EOF was_filled: T spids: [34] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[55]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('e46513e HEAD@{0}: commit (initial): one\n')} do_expansion: False here_end: EOF was_filled: T spids: [58] ) ] ) (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'>)} ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[91]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('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') } do_expansion: False here_end: EOF was_filled: T spids: [94] ) ] ) (C {(test_expect_success)} {(SQ <'override reflog default format'>)} {(SQ <'\n'> <'\tgit reflog --format=short -1 >actual &&\n'> <'\ttest_cmp expect actual\n'>)} ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[114]) (HereDoc op_id: Redir_DLess fd: 16777215 body: { ( 'Reflog: HEAD@{Thu Apr 7 15:13:13 2005 -0700} (C O Mitter <committer@example.com>)\n' ) ('Reflog message: commit (initial): one\n') } do_expansion: False here_end: EOF was_filled: T spids: [117] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[138]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('e46513e HEAD@{Thu Apr 7 15:13:13 2005 -0700}: commit (initial): one\n')} do_expansion: False here_end: EOF was_filled: T spids: [141] ) ] ) (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'>) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[161]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('HEAD@{Thu Apr 7 15:13:13 2005 -0700}\n')} do_expansion: False here_end: EOF was_filled: T spids: [164] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[184]) (HereDoc op_id: Redir_DLess fd: 16777215 body: { ( 'Reflog: HEAD@{Thu Apr 7 15:13:13 2005 -0700} (C O Mitter <committer@example.com>)\n' ) ('Reflog message: commit (initial): one\n') } do_expansion: False here_end: EOF was_filled: T spids: [187] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[208]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('e46513e HEAD@{Thu Apr 7 15:13:13 2005 -0700}: commit (initial): one\n')} do_expansion: False here_end: EOF was_filled: T spids: [211] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[231]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('HEAD@{1112911993 -0700}\n')} do_expansion: False here_end: EOF was_filled: T spids: [234] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[254]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('Reflog: HEAD@{0} (C O Mitter <committer@example.com>)\n') ('Reflog message: commit (initial): one\n') } do_expansion: False here_end: EOF was_filled: T spids: [257] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[279]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('e46513e HEAD@{0}: commit (initial): one\n')} do_expansion: False here_end: EOF was_filled: T spids: [282] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[303]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('HEAD@{0}\n')} do_expansion: False here_end: EOF was_filled: T spids: [306] ) ] ) (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'> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[327]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('HEAD@{0}\n')} do_expansion: False here_end: EOF was_filled: T spids: [330] ) ] ) (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'> ) } ) (SimpleCommand words: [{(Lit_Other ':')}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[350])] ) (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)}) ] )