Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t6003: add --date-order test
author
Junio C Hamano
<gitster@pobox.com>
Fri, 21 Jun 2013 17:52:06 +0000
(10:52 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 21 Jun 2013 18:16:31 +0000
(11:16 -0700)
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>
t/t6003-rev-list-topo-order.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
841dc69
)
diff --git
a/t/t6003-rev-list-topo-order.sh
b/t/t6003-rev-list-topo-order.sh
index bb66b8b48e3ddb1872f6fab1fef71098b4031fac..0e3b7e1ea30cf7d15125a5ab5ba755578a6c443f 100755
(executable)
--- a/
t/t6003-rev-list-topo-order.sh
+++ b/
t/t6003-rev-list-topo-order.sh
@@
-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