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 <gitster@pobox.com>

Junio C Hamano committed Jun 21, 2013 at 10:52 UTC b9f80fdaea3a35fa156807e42e52d875bf6ad301
1 file changed +22
t/t6003-rev-list-topo-order.sh
+22
@@ -100,6 +100,28 @@ l0
100 root
101 EOF
102
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 +
125 test_output_expect_success 'two diamonds topo order (g6)' 'git rev-list --topo-order g4' <<EOF
126 g4
127 h2