From: Theodore Tso <tytso@mit.edu>
To: Sean <seanlkml@sympatico.ca>
Cc: Matthew L Foster <mfoster167@yahoo.com>,
Junio C Hamano <junkio@cox.net>,
Linus Torvalds <torvalds@osdl.org>, Andreas Ericsson <ae@op5.se>,
git@vger.kernel.org, Jeff King <peff@peff.net>,
Jakub Narebski <jnareb@gmail.com>
Subject: Re: git and time
Date: Thu, 28 Sep 2006 09:17:10 -0400 [thread overview]
Message-ID: <20060928131710.GE7469@thunk.org> (raw)
In-Reply-To: <20060927220404.8e216945.seanlkml@sympatico.ca>
On Wed, Sep 27, 2006 at 10:04:04PM -0400, Sean wrote:
> > I actually understand that and agree. All I've been saying is it
> > (git or gitweb.cgi) should prefer the local timestamp rather than
> > any "remote" timestamps for no other reason than to minimize the
> > possibility of timestamps being grossly inaccurate.
>
> But any local time stamp would be a _lie_. The time stamp in the
> commit records when it was actually created. And as Junio has
> pointed out, hundreds of commits will typically arrive in a repo at
> the exact same time. Your suggestion would have them all showing
> the exact same time. That's not helpful, and it loses important
> factual information.
There are two issues here. Could a git tree record the local time
that each commit entered the repository? Sure. Someone who wanted to
hack up git so that it created a local db file associating the SHA
hash name of the commit with when it arrived in its local repository.
It would not be part of the "true" git repository information, and it
could be something which is optional in the sense that if the
information is lost, it's not the end of the world, vis-a-vis correct
git functioning.
The second question, though, is would it be *useful*? Presumably this
would be an option, so the user could request to see the time when a
commit hit a particular repository, as well as when the commit was
first created --- or perhaps both.
The problem though is that this could easily get confusing, since it
adds a distinction (which repository am I talking to?) which normally
doesn't exist in git. And it forces us to make explicit things that
normally are kept hidden --- such as whether or not Linus does his
work directly on the git tree which is exposed by master.kernel.org,
or whether he does the work on his own local tree, and then pushes the
changes to master.kernel.org.
In git, we believe that all repositories are equal, and that any sense
that a particular repository is the "master" or the "mainline" is
strictly speaking, a matter of convention. What Matthew I think is
asking for is direct support in git for that notion.
So it *could* be done, but whether or not it is a good idea or worth
the complexity is a different question. One could imagine a
completely different protocol, which exported the contents of the
hypothetical db database described above. So for maintainers that
were *important*, and who were willing to make this information
available, given a particular SHA hash of a commit, one could ask the
question, "when did this commit first eneter your repository"?
Matthew seems hung up on on desperately wanting to know this
information as it relates to a particular repository --- Linus's.
This is in fact different from when the commit hit the repository
which is master.kernel.org which is why the local commit times on
master.kernel.org wouldn't be useful.
HOWEVER, if it was judged important enough, and worth the complexity
that it would add to git, the ability to track when a commit entered a
particular repository and the ability to export it via some kind of
web interface certainly be implemented. Linus would then have to
decide whether this was information he felt like making available to
inquisitive seekers wanting to know this sort of info.
- Ted
next prev parent reply other threads:[~2006-09-28 13:17 UTC|newest]
Thread overview: 120+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 23:23 git and time Matthew L Foster
2006-09-26 23:27 ` Johannes Schindelin
2006-09-26 23:32 ` Jakub Narebski
2006-09-26 23:33 ` Jeff King
2006-09-27 0:27 ` Matthew L Foster
2006-09-27 1:11 ` Junio C Hamano
2006-09-27 8:42 ` Andreas Ericsson
2006-09-27 15:28 ` Jeff King
2006-09-27 14:09 ` Matthew L Foster
2006-09-27 14:29 ` Andreas Ericsson
2006-09-27 18:01 ` Matthew L Foster
2006-09-27 18:10 ` Linus Torvalds
2006-09-27 20:44 ` Matthew L Foster
2006-09-27 20:51 ` Linus Torvalds
2006-09-27 21:16 ` Matthew L Foster
2006-09-27 21:01 ` Linus Torvalds
2006-09-27 21:44 ` Matthew L Foster
2006-09-27 21:48 ` Linus Torvalds
2006-09-27 22:28 ` Matthew L Foster
2006-09-27 22:54 ` Linus Torvalds
2006-09-27 23:02 ` Shawn Pearce
2006-09-27 23:14 ` Linus Torvalds
2006-09-28 0:12 ` Matthew L Foster
2006-09-28 0:21 ` Jeff King
2006-09-28 0:23 ` Shawn Pearce
2006-09-28 1:39 ` Matthew L Foster
2006-09-28 2:21 ` Linus Torvalds
2006-09-29 7:52 ` Andreas Ericsson
2006-09-29 14:09 ` Johannes Schindelin
2006-09-29 14:21 ` Andreas Ericsson
2006-09-28 1:23 ` Junio C Hamano
2006-09-28 1:48 ` Matthew L Foster
[not found] ` <20060927220404.8e216945.seanlkml@sympatico.ca>
2006-09-28 2:04 ` Sean
2006-09-28 2:49 ` Matthew L Foster
2006-09-28 2:43 ` David Lang
[not found] ` <20060927230330.90c63d23.seanlkml@sympatico.ca>
2006-09-28 3:03 ` Sean
2006-09-28 3:26 ` Tom Prince
2006-09-28 13:17 ` Theodore Tso [this message]
2006-09-28 14:50 ` Matthew L Foster
2006-09-28 15:29 ` Rogan Dawes
2006-09-28 16:55 ` Matthew L Foster
2006-09-28 17:11 ` Linus Torvalds
2006-09-28 17:28 ` Junio C Hamano
2006-09-28 17:33 ` Matthew L Foster
2006-09-28 17:42 ` Johannes Schindelin
2006-09-28 19:43 ` Matthew L Foster
2006-09-28 19:50 ` Shawn Pearce
2006-09-28 22:29 ` Matthew L Foster
2006-09-28 22:35 ` Johannes Schindelin
2006-09-28 22:55 ` Matthew L Foster
2006-09-29 8:16 ` Andreas Ericsson
2006-09-28 18:01 ` Linus Torvalds
2006-09-28 19:18 ` Matthew L Foster
2006-09-29 0:27 ` Theodore Tso
2006-09-29 1:44 ` Matthew L Foster
2006-09-29 2:28 ` Junio C Hamano
2006-09-28 20:36 ` Robin Rosenberg
2006-09-28 20:46 ` A Large Angry SCM
2006-09-28 22:12 ` Matthew L Foster
2006-09-28 22:25 ` A Large Angry SCM
2006-09-28 22:31 ` Matthew L Foster
2006-09-28 22:45 ` Matthew L Foster
2006-09-28 3:07 ` Nicolas Pitre
2006-09-28 3:39 ` Tom Prince
2006-09-28 3:47 ` Shawn Pearce
2006-09-28 4:07 ` Junio C Hamano
2006-09-28 1:36 ` Theodore Tso
2006-09-28 2:29 ` Matthew L Foster
2006-09-28 2:51 ` Nicolas Pitre
2006-09-28 4:03 ` Junio C Hamano
2006-09-28 14:34 ` Nicolas Pitre
2006-09-28 16:05 ` Junio C Hamano
2006-09-29 22:27 ` Junio C Hamano
2006-09-30 4:50 ` Shawn Pearce
2006-09-30 7:28 ` Junio C Hamano
2006-09-30 17:36 ` Linus Torvalds
2006-09-30 23:04 ` Junio C Hamano
2006-10-01 0:13 ` Linus Torvalds
2006-10-01 0:24 ` Junio C Hamano
2006-10-01 8:07 ` Junio C Hamano
2006-10-01 8:37 ` Johannes Schindelin
2006-10-02 23:50 ` Jakub Narebski
2006-09-29 20:42 ` Jakub Narebski
2006-09-27 21:56 ` Shawn Pearce
2006-09-27 22:46 ` Matthew L Foster
2006-09-27 22:57 ` Shawn Pearce
2006-09-27 18:53 ` Andy Whitcroft
2006-09-27 16:29 ` Linus Torvalds
2006-09-27 18:00 ` Edgar Toernig
2006-09-27 18:09 ` Linus Torvalds
2006-09-29 20:58 ` Jakub Narebski
2006-09-27 1:58 ` Linus Torvalds
2006-10-03 0:01 ` Jakub Narebski
2006-09-27 3:34 ` Jeff King
[not found] ` <20060926234309.b16aa44e.seanlkml@sympatico.ca>
2006-09-27 3:43 ` Sean
2006-09-27 4:50 ` Junio C Hamano
[not found] ` <20060927010437.5fa57ed0.seanlkml@sympatico.ca>
2006-09-27 5:04 ` Sean
2006-09-27 5:52 ` Jeff King
[not found] ` <20060927021529.69fd7274.seanlkml@sympatico.ca>
2006-09-27 6:15 ` Sean
2006-09-27 4:28 ` Shawn Pearce
2006-09-27 4:53 ` Junio C Hamano
2006-09-27 10:13 ` Junio C Hamano
2006-09-27 15:11 ` Shawn Pearce
2006-09-27 20:46 ` Junio C Hamano
2006-09-27 21:36 ` Shawn Pearce
[not found] ` <20060927002745. 15344.qmail@web51005.mail.yahoo.com>
2006-09-27 0:56 ` Sean
[not found] ` <20060926205632.5d487cc9.seanlkml@sympatico.ca>
2006-09-27 0:47 ` David Lang
[not found] ` <20060926210721.36eb509d.seanlkml@sympatico.ca>
2006-09-27 1:07 ` Sean
2006-09-27 1:34 ` Junio C Hamano
2006-09-27 1:31 ` David Lang
[not found] ` <20060926215836.f4a25297.seanlkml@sympatico.ca>
2006-09-27 1:58 ` Sean
2006-09-27 2:31 ` Junio C Hamano
[not found] ` <20060926224133.714337eb.seanlkml@sympatico.ca>
2006-09-27 2:41 ` Sean
2006-09-29 17:37 ` Jan Harkes
[not found] ` <20060929134616.7966d18c.seanlkml@sympatico.ca>
2006-09-29 17:46 ` Sean
-- strict thread matches above, loose matches on Subject: below --
2006-09-28 0:49 apodtele
2006-09-28 16:53 ` Linus Torvalds
2006-09-28 16:50 apodtele
[not found] <20060928170110.GD3650@socrates.priv>
2006-09-28 17:30 ` Matthew L Foster
2006-09-28 18:21 apodtele
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=20060928131710.GE7469@thunk.org \
--to=tytso@mit.edu \
--cc=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=junkio@cox.net \
--cc=mfoster167@yahoo.com \
--cc=peff@peff.net \
--cc=seanlkml@sympatico.ca \
--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).