git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@suse.cz>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Junio C Hamano <junkio@cox.net>, Pavel Roskin <proski@gnu.org>,
	fonseca@diku.dk, git <git@vger.kernel.org>
Subject: Re: Joining cg-*-id
Date: Tue, 20 Sep 2005 17:07:19 +0200	[thread overview]
Message-ID: <20050920150719.GB1836@pasky.or.cz> (raw)
In-Reply-To: <Pine.LNX.4.58.0509200734440.2553@g5.osdl.org>

Dear diary, on Tue, Sep 20, 2005 at 04:53:11PM CEST, I got a letter
where Linus Torvalds <torvalds@osdl.org> told me that...
> On Tue, 20 Sep 2005, Petr Baudis wrote:
> > > 
> > > So I'd love to have
> > > 
> > > 	git diff yesterday..
> > > 
> > > but the fact is, there's no sensible semantics for it. _which_ yesterday? 
> > > There might be five different points that are "close to 24 hours ago", 
> > > along five different paths backwards in the history.
> > 
> > A well-defined meaning for this from Cogito standpoint would be "the
> > last commit on our HEAD before the date and all commits committed and
> > merged to the HEAD". In Cogito, you don't merge two branches _together_,
> > you merge one branch _into_ another (represented by the parents order),
> > so this would be sensible.
> 
> No, it's _not_ sensible or well-defined.
> 
> The order of the parents does not matter. It fundamentally _cannot_ 
> matter. I realize that both git and cogito put the "primary parent" first, 
> but that doesn't help one iota - because git is distributed, if the other 
> side merged and we just did a fast-forward, the "primary parent" will be 
> the _other_ side.
> 
> In other words, anybody who thinks that the order of parents is meaningful 
> is in for some nasty shocks. It really _fundamentally_ isn't true. I 
> realize that's hard to accept, but it's a truism in a distributed system. 
> You really cannot have parent ordering and distribution at the same time.

Ok ok. I can now remember already learning about this once, but I forgot
again. I should write it down into some README for myself or so, I
guess. ;-) Sorry about the noise.

I'll just drop the date revision specifier support from Cogito. I don't
know if any measurable number of people actually use it in the real
world anyway.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which

  reply	other threads:[~2005-09-20 15:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19 21:40 Joining cg-*-id Pavel Roskin
2005-09-19 21:56 ` Petr Baudis
2005-09-19 22:16   ` Linus Torvalds
2005-09-19 22:54     ` Petr Baudis
2005-09-20  0:50       ` Linus Torvalds
2005-09-20 13:57         ` Petr Baudis
2005-09-20 14:53           ` Linus Torvalds
2005-09-20 15:07             ` Petr Baudis [this message]
2005-09-20 16:54               ` Linus Torvalds
2005-09-20 19:34                 ` Linus Torvalds
2005-09-21 10:35                   ` Paul Mackerras
2005-09-21 14:51                     ` Linus Torvalds
2005-09-21 21:19                       ` Paul Mackerras
2005-09-21  8:50                 ` Petr Baudis
2005-09-20 15:13             ` Matthias Urlichs
2005-09-20  5:52     ` Junio C Hamano
2005-09-20 10:11       ` Matthias Urlichs
2005-09-20 12:32         ` Paul Mackerras
2005-09-19 22:30   ` Pavel Roskin
2005-09-19 22:58     ` Petr Baudis
2005-09-20  0:19       ` Pavel Roskin
2005-09-20  0:26         ` Petr Baudis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050920150719.GB1836@pasky.or.cz \
    --to=pasky@suse.cz \
    --cc=fonseca@diku.dk \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=proski@gnu.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).