(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:test_description)
          op: assign_op.Equal
          rhs: {(SQ (Token id:Id.Lit_Chars val:'miscellaneous rev-list tests' span_id:6))}
          spids: [4]
        )
      ]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(test_expect_success)} {(setup)} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:20) 
          (Token id:Id.Lit_Chars val:'\techo content1 >wanted_file &&\n' span_id:21) (Token id:Id.Lit_Chars val:'\techo content2 >unwanted_file &&\n' span_id:22) 
          (Token id:Id.Lit_Chars val:'\tgit add wanted_file unwanted_file &&\n' span_id:23) (Token id:Id.Lit_Chars val:'\tgit commit -m one\n' span_id:24)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'rev-list --objects heeds pathspecs' span_id:31))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:35) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit rev-list --objects HEAD -- wanted_file >output &&\n'
            span_id: 36
          ) (Token id:Id.Lit_Chars val:'\tgrep wanted_file output &&\n' span_id:37) 
          (Token id:Id.Lit_Chars val:'\t! grep unwanted_file output\n' span_id:38)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'rev-list --objects with pathspecs and deeper paths'
            span_id: 45
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:49) 
          (Token id:Id.Lit_Chars val:'\tmkdir foo &&\n' span_id:50) (Token id:Id.Lit_Chars val:'\t>foo/file &&\n' span_id:51) 
          (Token id:Id.Lit_Chars val:'\tgit add foo/file &&\n' span_id:52) (Token id:Id.Lit_Chars val:'\tgit commit -m two &&\n' span_id:53) 
          (Token id:Id.Lit_Chars val:'\n' span_id:54) (Token id:Id.Lit_Chars val:'\tgit rev-list --objects HEAD -- foo >output &&\n' span_id:55) 
          (Token id:Id.Lit_Chars val:'\tgrep foo/file output &&\n' span_id:56) (Token id:Id.Lit_Chars val:'\n' span_id:57) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit rev-list --objects HEAD -- foo/file >output &&\n'
            span_id: 58
          ) (Token id:Id.Lit_Chars val:'\tgrep foo/file output &&\n' span_id:59) 
          (Token id:Id.Lit_Chars val:'\t! grep unwanted_file output\n' span_id:60)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'rev-list --objects with pathspecs and copied files'
            span_id: 67
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:71) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit checkout --orphan junio-testcase &&\n'
            span_id: 72
          ) (Token id:Id.Lit_Chars val:'\tgit rm -rf . &&\n' span_id:73) 
          (Token id:Id.Lit_Chars val:'\n' span_id:74) (Token id:Id.Lit_Chars val:'\tmkdir two &&\n' span_id:75) 
          (Token id:Id.Lit_Chars val:'\techo frotz >one &&\n' span_id:76) (Token id:Id.Lit_Chars val:'\tcp one two/three &&\n' span_id:77) 
          (Token id:Id.Lit_Chars val:'\tgit add one two/three &&\n' span_id:78) (Token id:Id.Lit_Chars val:'\ttest_tick &&\n' span_id:79) 
          (Token id:Id.Lit_Chars val:'\tgit commit -m that &&\n' span_id:80) (Token id:Id.Lit_Chars val:'\n' span_id:81) 
          (Token id:Id.Lit_Chars val:'\tONE=$(git rev-parse HEAD:one) &&\n' span_id:82) (Token id:Id.Lit_Chars val:'\tgit rev-list --objects HEAD two >output &&\n' span_id:83) 
          (Token id:Id.Lit_Chars val:'\tgrep "$ONE two/three" output &&\n' span_id:84) (Token id:Id.Lit_Chars val:'\t! grep one output\n' span_id:85)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'rev-list A..B and rev-list ^A B are the same' span_id:92))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:96) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit commit --allow-empty -m another &&\n'
            span_id: 97
          ) (Token id:Id.Lit_Chars val:'\tgit tag -a -m "annotated" v1.0 &&\n' span_id:98) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit rev-list --objects ^v1.0^ v1.0 >expect &&\n'
            span_id: 99
          ) (Token id:Id.Lit_Chars val:'\tgit rev-list --objects v1.0^..v1.0 >actual &&\n' span_id:100) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expect actual\n' span_id:101)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'propagate uninteresting flag down correctly' span_id:108))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:112) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit rev-list --objects ^HEAD^{tree} HEAD^{tree} >actual &&\n'
            span_id: 113
          ) (Token id:Id.Lit_Chars val:'\t>expect &&\n' span_id:114) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expect actual\n' span_id:115)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'symleft flag bit is propagated down from tag' span_id:122))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:126) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit log --format="%m %s" --left-right v1.0...master >actual &&\n'
            span_id: 127
          ) (Token id:Id.Lit_Chars val:'\tcat >expect <<-\\EOF &&\n' span_id:128) 
          (Token id:Id.Lit_Chars val:'\t> two\n' span_id:129) (Token id:Id.Lit_Chars val:'\t> one\n' span_id:130) 
          (Token id:Id.Lit_Chars val:'\t< another\n' span_id:131) (Token id:Id.Lit_Chars val:'\t< that\n' span_id:132) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:133) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expect actual\n' span_id:134)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'rev-list can show index objects' span_id:141))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:145) 
          (Token
            id: Id.Lit_Chars
            val: '\t# Of the blobs and trees in the index, note:\n'
            span_id: 146
          ) (Token id:Id.Lit_Chars val:'\t#\n' span_id:147) 
          (Token
            id: Id.Lit_Chars
            val: '\t#   - we do not show two/three, because it is the\n'
            span_id: 148
          ) (Token id:Id.Lit_Chars val:'\t#     same blob as "one", and we show objects only once\n' span_id:149) 
          (Token id:Id.Lit_Chars val:'\t#\n' span_id:150) 
          (Token
            id: Id.Lit_Chars
            val: '\t#   - we do show the tree "two", because it has a valid cache tree\n'
            span_id: 151
          ) (Token id:Id.Lit_Chars val:'\t#     from the last commit\n' span_id:152) 
          (Token id:Id.Lit_Chars val:'\t#\n' span_id:153) 
          (Token
            id: Id.Lit_Chars
            val: '\t#   - we do not show the root tree; since we updated the index, it\n'
            span_id: 154
          ) (Token id:Id.Lit_Chars val:'\t#     does not have a valid cache tree\n' span_id:155) 
          (Token id:Id.Lit_Chars val:'\t#\n' span_id:156) (Token id:Id.Lit_Chars val:'\tcat >expect <<-\\EOF &&\n' span_id:157) 
          (Token
            id: Id.Lit_Chars
            val: '\t8e4020bb5a8d8c873b25de15933e75cc0fc275df one\n'
            span_id: 158
          ) (Token id:Id.Lit_Chars val:'\td9d3a7417b9605cfd88ee6306b28dadc29e6ab08 only-in-index\n' span_id:159) 
          (Token
            id: Id.Lit_Chars
            val: '\t9200b628cf9dc883a85a7abc8d6e6730baee589c two\n'
            span_id: 160
          ) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:161) 
          (Token
            id: Id.Lit_Chars
            val: '\techo only-in-index >only-in-index &&\n'
            span_id: 162
          ) (Token id:Id.Lit_Chars val:'\tgit add only-in-index &&\n' span_id:163) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit rev-list --objects --indexed-objects >actual &&\n'
            span_id: 164
          ) (Token id:Id.Lit_Chars val:'\ttest_cmp expect actual\n' span_id:165)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--bisect and --first-parent can not be combined' span_id:172))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:176) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_must_fail git rev-list --bisect --first-parent HEAD\n'
            span_id: 177
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--header shows a NUL after each commit' span_id:184))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:188) 
          (Token
            id: Id.Lit_Chars
            val: '\t# We know that there is no Q in the true payload; names and\n'
            span_id: 189
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t# addresses of the authors and the committers do not have\n'
            span_id: 190
          ) (Token id:Id.Lit_Chars val:'\t# any, and object names or header names do not, either.\n' span_id:191) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit rev-list --header --max-count=2 HEAD |\n'
            span_id: 192
          ) (Token id:Id.Lit_Chars val:'\tnul_to_q |\n' span_id:193) 
          (Token id:Id.Lit_Chars val:'\tgrep "^Q" >actual &&\n' span_id:194) (Token id:Id.Lit_Chars val:'\tcat >expect <<-EOF &&\n' span_id:195) 
          (Token id:Id.Lit_Chars val:'\tQ$(git rev-parse HEAD~1)\n' span_id:196) (Token id:Id.Lit_Chars val:'\tQ\n' span_id:197) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:198) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expect actual\n' span_id:199)
        )
      }
    )
    (C {(test_done)})
  ]
)