git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Git Mailing List <git@vger.kernel.org>, Jeff King <peff@peff.net>
Subject: Re: [PATCH] Add a 'generation' number to commits
Date: Fri, 15 Jul 2011 17:36:24 -0700	[thread overview]
Message-ID: <7vvcv3ysc7.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CA+55aFw2_n2NkYpm9c1JiKaX_H4W89Ridq4qzBqyamuxpODejA@mail.gmail.com> (Linus Torvalds's message of "Fri, 15 Jul 2011 16:58:36 -0700")

Linus Torvalds <torvalds@linux-foundation.org> writes:

> On Fri, Jul 15, 2011 at 12:49 PM, Junio C Hamano <gitster@pobox.com> wrote:
>>
>> I agree this is the way to go if we _were_ to use generation number
>> associated with commit objects in the longer term,
>
> I have to say, if the main issue was "git tag/branch --contains", and
> if the time-based slop approach of the patch I sent out is acceptable,
> I think that we can continue to ignore generation numbers.

I think we are in agreement that "--contains" can be sped up without
generation numbers.

As I mentioned elsewhere, rev-list SLOP and merge-base traversal have
different performance characteristics and requirements from "--contains"
(for one thing, they cannot say "the commit tagged with v2.6.13 is too old
that there is no way this commit made three days ago is contained in it"
to optimize the traversal). And I agree that if we had generation header
in commit in May 2005, optimizing these traversals properly would have
been much cleaner, and it may still be worth doing it.

      reply	other threads:[~2011-07-16  0:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-14 18:34 [PATCH] Add a 'generation' number to commits Linus Torvalds
2011-07-15 19:49 ` Junio C Hamano
2011-07-15 23:58   ` Linus Torvalds
2011-07-16  0:36     ` Junio C Hamano [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=7vvcv3ysc7.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=torvalds@linux-foundation.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).