Re: [PATCH v2 2/2] pack-objects: don't loosen objects available in alternate or kept packs
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