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
Brandon Casey <casey@nrlssc.navy.mil>
Date
Mar 24, 2009, 23:01 UTC
Message-ID
<rQW7WJIjEMSgMCBHRTSMXJu2FmnvjGxMF8nC2pFnNro@cipher.nrlssc.navy.mil>
In-Reply-To
<7viqm15qda.fsf@gitster.siamese.dyndns.org>
Junio,

I notice this patch is in next now (I noticed earlier than today, but haven't said anything).

I just want to point one minor thing. After figuring out why last_found was initialized to (void *)1 rather then NULL, you seem to have committed a version that was slightly different from what I submitted. The logic is the same, but now the following line is different from the line in sha1_file.c where I copied it from:

builtin-pack-objects.c (line 1952):
   p = (last_found != (void *)1) ? last_found : packed_git;
sha1_file.c (line 1931): 
   p = (last_found == (void *)1) ? packed_git : last_found;

People should be able to easily recognize the two procedures as "the same". This small difference may give them pause. If it is possible to amend this commit before applying to master, perhaps you would like to do so. Otherwise, no big deal.

-brandon
Previous: Nicolas Pitre
Message 7 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.