Re: [PATCH v5 04/17] odb: introduce parent pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 29, 2025 at 09:34:12PM -0500, Justin Tobler wrote:
> > @@ -167,22 +171,23 @@ static int link_alt_odb_entry(struct repository *r, const struct strbuf *entry,
> >  	while (pathbuf.len && pathbuf.buf[pathbuf.len - 1] == '/')
> >  		strbuf_setlen(&pathbuf, pathbuf.len - 1);
> >  
> > -	if (!alt_odb_usable(r->objects, &pathbuf, normalized_objdir, &pos))
> > +	if (!alt_odb_usable(odb, &pathbuf, normalized_objdir, &pos))
> >  		goto error;
> >  
> >  	CALLOC_ARRAY(alternate, 1);
> > -	/* pathbuf.buf is already in r->objects->source_by_path */
> > +	alternate->odb = odb;
> > +	/* pathbuf.buf is already in r->objects->alternate_by_path */
> 
> Should this comment instead say "odb->source_by_path"?
> 
> The remaining restructuring in this patch looks good.

Ah, good catch. I think I botched conflict resolution here.

Patrick




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux