From: Mike Hommey <mh@glandium.org>
To: Jeff King <peff@peff.net>
Cc: David Kastrup <dak@gnu.org>, git@vger.kernel.org
Subject: Re: Consistency question
Date: Sat, 18 Jan 2014 10:22:22 +0900 [thread overview]
Message-ID: <20140118012222.GA4381@glandium.org> (raw)
In-Reply-To: <20140115111330.GH14335@sigill.intra.peff.net>
On Wed, Jan 15, 2014 at 06:13:30AM -0500, Jeff King wrote:
> On Wed, Jan 15, 2014 at 11:37:08AM +0100, David Kastrup wrote:
>
> > The question is what guarantees I have with regard to the commit date of
> > a commit in relation to that of its parent commits:
> >
> > a) none
> > b) commitdate(child) >= commitdate(parent)
> > c) commitdate(child) > commitdate(parent)
>
> a) none
>
> > Obviously, I can rely on c) being true "almost always":
>
> Actually, b) is quite often the case in automated processes (e.g., "git
> am" or "git rebase"). The author dates are different, but the committer
> dates may be in the same second.
>
> And of course a) is the result of clock skew and software bugs.
... or importing non-git repositories that don't have commit info
separated from author info like git does. In such cases, it's usual to
duplicate the author info as commit info so that clones of the same
non-git repo end up with the same git sha1s. Mercurial easily allows
author dates to be in a non topological order.
Mike
prev parent reply other threads:[~2014-01-18 1:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 10:37 Consistency question David Kastrup
2014-01-15 11:13 ` Jeff King
2014-01-15 11:40 ` David Kastrup
2014-01-15 12:44 ` Andreas Krey
2014-01-15 13:00 ` David Kastrup
2014-01-15 13:45 ` Andreas Krey
2014-01-15 11:55 ` David Kastrup
2014-01-18 1:22 ` Mike Hommey [this message]
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=20140118012222.GA4381@glandium.org \
--to=mh@glandium.org \
--cc=dak@gnu.org \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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).