summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Michele Ballabio <barra_cuda@katamail.com>2008-04-10 22:06:52 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-04-11 23:01:33 -0700
commita710522bfc9ae6e27ce4bea573d1d223af6a6f8e (patch)
tree19965acdc6ff2cad65b5a0ec9e8d959c61038ac4
parentFix section about backdating tags in the git-tag docs (diff)
downloadtgif-a710522bfc9ae6e27ce4bea573d1d223af6a6f8e.tar.xz
revision.c: make --date-order overriddable
Jan Engelhardt noticed that while --topo-order can be overridden by a subsequent --date-order, the reverse was not possible. That's because setup_revisions() failed to set revs->lifo properly. Signed-off-by: Michele Ballabio <barra_cuda@katamail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--revision.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index a399f27144..d79f2b3a7b 100644
--- a/revision.c
+++ b/revision.c
@@ -1019,6 +1019,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
continue;
}
if (!strcmp(arg, "--topo-order")) {
+ revs->lifo = 1;
revs->topo_order = 1;
continue;
}