git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Pitre <nico@cam.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/3] make index-pâck able to complete thin packs
Date: Fri, 27 Oct 2006 20:41:00 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0610272032110.11384@xanadu.home> (raw)
In-Reply-To: <7vmz7hcs0o.fsf@assigned-by-dhcp.cox.net>

On Fri, 27 Oct 2006, Junio C Hamano wrote:

> Nicolas Pitre <nico@cam.org> writes:
> 
> > +static void fix_unresolved_deltas(int nr_unresolved)
> > +{
[...]
> > +		if (objects[d->obj_no].real_type != OBJ_REF_DELTA)
> > +			continue;
> 
> Just for the sake of my own sanity checking,...
> 
> Is it because base objects of OFS_DELTA _must_ exist in the same
> pack (even when --thin) that we do not have to worry about them
> in this function?

Indeed.  Otherwise it would be impossible to determine the offset to the 
base object if that base object is not in the pack.

That doesn't mean there isn't any OFS_DELTA left to resolve though.  
But this function is only about adding missing objects to the pack and 
the deltas that need them must be REF_DELTA objects.

Once a REF_DELTA has been resolved with an external object, it then 
constitute a possible new base for remaining OFS_DELTA or 
REF_DELTA objects, and that is found recursively in resolve_delta().



      reply	other threads:[~2006-10-28  0:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-26  3:28 [PATCH 1/3] make index-pâck able to complete thin packs Nicolas Pitre
2006-10-26  7:19 ` Junio C Hamano
2006-10-26  7:50   ` Jakub Narebski
2006-10-26  9:19     ` Karl Hasselström
2006-10-26  9:33       ` Junio C Hamano
2006-10-26  9:38         ` Karl Hasselström
2006-10-26  9:56         ` Jakub Narebski
2006-10-26 13:25           ` Nicolas Pitre
2006-10-26 10:13       ` Catalin Marinas
2006-10-26 10:58         ` Karl Hasselström
2006-10-26 11:52           ` Catalin Marinas
2006-10-26 11:57           ` Catalin Marinas
2006-10-26 14:06             ` stg mail Karl Hasselström
2006-10-27 22:28 ` [PATCH 1/3] make index-pâck able to complete thin packs Junio C Hamano
2006-10-28  0:41   ` Nicolas Pitre [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=Pine.LNX.4.64.0610272032110.11384@xanadu.home \
    --to=nico@cam.org \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.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).