git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rev-list date-order not overridable
@ 2008-04-10 11:43 Jan Engelhardt
  2008-04-10 20:06 ` [PATCH] revision.c: make --date-order overriddable Michele Ballabio
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2008-04-10 11:43 UTC (permalink / raw)
  To: git

Hi,


git-rev-list --topo-order (the default) can be overriden by specifying 
--date-order, but --date-order cannot be overriden by passing in 
--topo-order again. Having it work would be really nice because it 
allows extra programs to default to --date-order in some way.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] revision.c: make --date-order overriddable
  2008-04-10 11:43 rev-list date-order not overridable Jan Engelhardt
@ 2008-04-10 20:06 ` Michele Ballabio
  0 siblings, 0 replies; 2+ messages in thread
From: Michele Ballabio @ 2008-04-10 20:06 UTC (permalink / raw)
  To: git; +Cc: Jan Engelhardt

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>
---
On Thursday 10 April 2008, Jan Engelhardt wrote:
> git-rev-list --topo-order (the default) can be overriden by specifying 
> --date-order, but --date-order cannot be overriden by passing in 
> --topo-order again. Having it work would be really nice because it 
> allows extra programs to default to --date-order in some way.

This should do.

 revision.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/revision.c b/revision.c
index 196fedc..ffbed3f 100644
--- a/revision.c
+++ b/revision.c
@@ -1083,6 +1083,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;
 			}
-- 
1.5.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-10 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10 11:43 rev-list date-order not overridable Jan Engelhardt
2008-04-10 20:06 ` [PATCH] revision.c: make --date-order overriddable Michele Ballabio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).