git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 2/2] pack-objects: don't loosen objects available in alternate or kept packs

From
Nicolas Pitre <nico@cam.org>
Date
Mar 22, 2009, 19:23 UTC
Message-ID
<alpine.LFD.2.00.0903221522341.30483@xanadu.home>
In-Reply-To
<7viqm15qda.fsf@gitster.siamese.dyndns.org>
On Sun, 22 Mar 2009, Junio C Hamano wrote:
Show 10 quoted lines
> If you allow (last_found == NULL), the loop iterates over packed_git list,
> and when it has its last element in p after discovering nothing matches
> the criteria, this happens:
> 
> 	if (p == last_found) /* false, p is the last element on the list */
>         	p = packed_git; /* not taken */
> 	else
>         	p = p->next; /* taken, p == NULL now */
> 	if (p == last_found) /* true! */
> 		p = p->next; /* OOPS */
Yeah, you got it.  Now I remember.
Nicolas
Previous: Junio C HamanoNext: Brandon Casey
Message 6 of 7 in “pack-objects: don't loosen objects available in alternate or kept packs”
  1. 2/2 pack-objects: don't loosen objects available in alternate or kept packsBrandon Casey, Mar 21, 2009
  2. Junio C HamanoMar 22, 2009
  3. Brandon CaseyMar 22, 2009
  4. Nicolas PitreMar 22, 2009
  5. Junio C HamanoMar 22, 2009
  6. Nicolas PitreMar 22, 2009
  7. Brandon CaseyMar 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.