Skip to content

Commit

Permalink
t6003: add --date-order test
Browse files Browse the repository at this point in the history
The "--date-order" output is a slight twist of "--topo-order" in
that commits from parallel histories are shown in their committer
date order without an attempt to clump commits from a single line
of history together like --topo-order does.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jun 21, 2013
1 parent 841dc69 commit b9f80fd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions t/t6003-rev-list-topo-order.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,28 @@ l0
root
EOF

test_output_expect_success 'simple date order' 'git rev-list --date-order HEAD' <<EOF
l5
l4
l3
a4
b4
a3
a2
c3
c2
b3
b2
c1
b1
a1
a0
l2
l1
l0
root
EOF

test_output_expect_success 'two diamonds topo order (g6)' 'git rev-list --topo-order g4' <<EOF
g4
h2
Expand Down

0 comments on commit b9f80fd

Please sign in to comment.