* Difference between --date-order and reverse chronological order?
@ 2011-04-27 15:15 Dun Peal
2011-04-27 17:36 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Dun Peal @ 2011-04-27 15:15 UTC (permalink / raw)
To: git
Hi.
The git-log manpage defines --date-order:
"This option is similar to --topo-order in the sense that no parent
comes before all of its children, but otherwise things are still
ordered in the commit timestamp order."
But by Git's definition, for a child commit to be created, its parent
must already exist. So even in reverse chronological order, all
parents should come after all their children, no?
Thanks, D.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Difference between --date-order and reverse chronological order?
2011-04-27 15:15 Difference between --date-order and reverse chronological order? Dun Peal
@ 2011-04-27 17:36 ` Junio C Hamano
2011-04-27 19:39 ` Johannes Sixt
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2011-04-27 17:36 UTC (permalink / raw)
To: Dun Peal; +Cc: git
Dun Peal <dunpealer@gmail.com> writes:
> But by Git's definition, for a child commit to be created, its parent
> must already exist. So even in reverse chronological order, all
> parents should come after all their children, no?
I think "distributed" and "your clock may be skewed" would solve that
puzzlement ;-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Difference between --date-order and reverse chronological order?
2011-04-27 17:36 ` Junio C Hamano
@ 2011-04-27 19:39 ` Johannes Sixt
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Sixt @ 2011-04-27 19:39 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Dun Peal, git
Am 27.04.2011 19:36, schrieb Junio C Hamano:
> Dun Peal <dunpealer@gmail.com> writes:
>
>> But by Git's definition, for a child commit to be created, its parent
>> must already exist. So even in reverse chronological order, all
>> parents should come after all their children, no?
>
> I think "distributed" and "your clock may be skewed" would solve that
> puzzlement ;-)
Are you saying that given this history:
E----D
/ /
A--B--C
* we can get D-C-B-E-A or D-E-C-B-A with --topo-order
* we can get the above plus D-C-E-B-A with --date-order
* and with neither --topo-order nor --date-order we can also get
D-E-A-C-B or D-C-B-A-E if there was sufficient clock skew when the
commits were created. How would such a clock skew have looked like?
-- Hannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-27 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27 15:15 Difference between --date-order and reverse chronological order? Dun Peal
2011-04-27 17:36 ` Junio C Hamano
2011-04-27 19:39 ` Johannes Sixt
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).