git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] First cut at libifying revlist generation
Date: Sun, 26 Feb 2006 21:09:45 -0800	[thread overview]
Message-ID: <7vy7zx1j6u.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: Pine.LNX.4.64.0602261914270.22647@g5.osdl.org

Linus Torvalds <torvalds@osdl.org> writes:

> On Sun, 26 Feb 2006, Junio C Hamano wrote:
>> 
>> I am clueless about the "limited = (list && list->next)" part,
>> but there is only one commit involved hence the test is false
>> with my testcase "git-rev-list --objects v1.0.0^0..v1.0.0"; I
>> think the old code said dotdot is a limited case.
>
> dotdot should insert _two_ commits onto the list - the positive and 
> the negative one.  Doesn't it? 

Not really, because the second invocation of add_one_commit()
says "I've seen that *commit*", which is correct.  And the story
is obviously the same if you used longhand "^v1.0.0^0 v1.0.0".

As a symbolic notation v1.0.0^0..v1.0.0 may not make much sense,
but the point is "the other end says he has that commit object,
but now he wants the tag we later attached to that commit
object; let's list the objects we need to send him".  This is
what upload-pack does.

A bad consequence of not limiting is that:

	git-rev-list ^v1.0.0^0 v1.0.0 | tail -n 1

gives this commit ;-):

	e83c5163316f89bfbde7d9ab23ca2e25604af290

Argh.

  reply	other threads:[~2006-02-27  5:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-26  0:19 [PATCH] First cut at libifying revlist generation Linus Torvalds
2006-02-26  3:40 ` Junio C Hamano
2006-02-27  1:57 ` Johannes Schindelin
2006-02-27  3:05   ` Linus Torvalds
2006-02-27  3:11 ` Junio C Hamano
2006-02-27  3:19   ` Linus Torvalds
2006-02-27  5:09     ` Junio C Hamano [this message]
2006-02-27  5:20       ` Linus Torvalds
2006-02-27 16:54         ` Linus Torvalds
2006-02-27 23:55           ` Junio C Hamano
2006-02-27  9:00   ` Johannes Schindelin
2006-02-28  1:13     ` Junio C Hamano

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=7vy7zx1j6u.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=git@vger.kernel.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).