Skip to content

Commit b9f80fd

Browse files
committed
t6003: add --date-order test
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 <[email protected]>
1 parent 841dc69 commit b9f80fd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

t/t6003-rev-list-topo-order.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,28 @@ l0
100100
root
101101
EOF
102102

103+
test_output_expect_success 'simple date order' 'git rev-list --date-order HEAD' <<EOF
104+
l5
105+
l4
106+
l3
107+
a4
108+
b4
109+
a3
110+
a2
111+
c3
112+
c2
113+
b3
114+
b2
115+
c1
116+
b1
117+
a1
118+
a0
119+
l2
120+
l1
121+
l0
122+
root
123+
EOF
124+
103125
test_output_expect_success 'two diamonds topo order (g6)' 'git rev-list --topo-order g4' <<EOF
104126
g4
105127
h2

0 commit comments

Comments
 (0)