summaryrefslogtreecommitdiff
path: root/t/t6003-rev-list-topo-order.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-21 17:52:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-21 18:16:31 (GMT)
commitb9f80fdaea3a35fa156807e42e52d875bf6ad301 (patch)
treeb9e777537229d7e6457e80cb9c4d11d974729370 /t/t6003-rev-list-topo-order.sh
parent841dc6935ea0f2ecfc778501edc66dc2c828d333 (diff)
downloadgit-b9f80fdaea3a35fa156807e42e52d875bf6ad301.zip
git-b9f80fdaea3a35fa156807e42e52d875bf6ad301.tar.gz
git-b9f80fdaea3a35fa156807e42e52d875bf6ad301.tar.bz2
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>
Diffstat (limited to 't/t6003-rev-list-topo-order.sh')
-rwxr-xr-xt/t6003-rev-list-topo-order.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/t6003-rev-list-topo-order.sh b/t/t6003-rev-list-topo-order.sh
index bb66b8b..0e3b7e1 100755
--- 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