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>
Michele Ballabio committed
Apr 10, 2008 at 22:06 UTC
a710522bfc9ae6e27ce4bea573d1d223af6a6f8e
1 file changed
+1
revision.c
+1
@@ -1019,6 +1019,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
1019
continue;
1020
}
1021
if (!strcmp(arg, "--topo-order")) {
1022
+ revs->lifo = 1;
1023
revs->topo_order = 1;
1024
continue;
1025
}