From: Alex Riesen <raa.lkml@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] Make reflog query '@{1219188291}' act as '@{2008/08/19 16:24:51}'
Date: Wed, 20 Aug 2008 22:09:12 +0200 [thread overview]
Message-ID: <20080820200912.GG16626@blimp.local> (raw)
In-Reply-To: <20080820200026.GK3483@spearce.org>
Shawn O. Pearce, Wed, Aug 20, 2008 22:00:26 +0200:
> Alex Riesen <raa.lkml@gmail.com> wrote:
> > Shawn O. Pearce, Wed, Aug 20, 2008 21:44:07 +0200:
> > >
> > > We could pick any number for the limit, just so long as its so
> > > large that the size of the reflog for it to be a valid @{nth}
> > > request would be something like 1 TB, and thus be highly unlikely.
> > >
> > > I was just trying to be cute by using the original commit timestamp
> > > of Git itself. Perhaps 12936648 (1TB / 83)?
> >
> > How about the maximum value the platform's size_t can handle?
>
> So on 64 bit platforms we need to wait for another 2.92277266
> x10^10 years before we will ever see a seconds-since-epoch which
> can't possibly be mistaken for a position in the relfog file?
It is just a timestamp. Can be set to anything.
> > Not because it is "highly unlikely", but because you and me frankly
> > have no idea exactly how unlikely for example a "12936648 terabytes" is?
>
> I have half a brain. Creating 12 million reflog entries would
> typically require 12 million git-update-ref forks. Anyone who is
> doing that many since reflog was introduced and has not yet truncated
> their reflog _really_ should reconsider what they are using it for.
Why? It may just as well work (unless there are some other, more
technical restrictions).
> Evaluating foo@{12936648} will be _horribly_ expensive. Anyone who
Depends what you evaluate it on. 640kb was also more than enough for
anyone once.
> is waiting for that result and _cares_ about it would have already
> started asking on the list for a reflog which is not based on a
> flat file. If they have already patched their Git to use something
> else (e.g. gdbm) I have no pity for them when this changes/breaks
> as they clearly have already patched their Git rather heavily.
Why should you _care_?
next prev parent reply other threads:[~2008-08-20 20:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 23:44 [PATCH] Make reflog query '@{1219188291}' act as '@{2008/08/19 16:24:51}' Shawn O. Pearce
2008-08-19 23:57 ` Junio C Hamano
2008-08-20 0:03 ` Shawn O. Pearce
2008-08-20 19:35 ` Alex Riesen
2008-08-20 19:44 ` Shawn O. Pearce
2008-08-20 19:54 ` Alex Riesen
2008-08-20 20:00 ` Shawn O. Pearce
2008-08-20 20:09 ` Alex Riesen [this message]
2008-08-20 22:20 ` Junio C Hamano
2008-08-21 15:40 ` Shawn O. Pearce
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=20080820200912.GG16626@blimp.local \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=spearce@spearce.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).