(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:test_description spids:[4])
          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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')
          ]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(SQ <EOF>)}
          here_end_span_id: 67
          stdin_parts: [('e46513e HEAD@{0}: commit (initial): one\n')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')
          ]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')
          ]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(SQ <EOF>)}
          here_end_span_id: 187
          stdin_parts: [('HEAD@{Thu Apr 7 15:13:13 2005 -0700}\n')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')
          ]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(SQ <EOF>)}
          here_end_span_id: 264
          stdin_parts: [('HEAD@{1112911993 -0700}\n')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          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')
          ]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(SQ <EOF>)}
          here_end_span_id: 317
          stdin_parts: [('e46513e HEAD@{0}: commit (initial): one\n')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(SQ <EOF>)}
          here_end_span_id: 343
          stdin_parts: [('HEAD@{0}\n')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(SQ <EOF>)}
          here_end_span_id: 369
          stdin_parts: [('HEAD@{0}\n')]
        )
      ]
    )
    (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:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})]
    )
    (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)})
  ]
)