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

Re: Zero padded file modes...

From
Nicolas Pitre <nico@fluxnic.net>
Date
Sep 5, 2013, 17:09 UTC
Message-ID
<alpine.LFD.2.03.1309051302570.14472@syhkavp.arg>
In-Reply-To
<20130905153646.GA12372@sigill.intra.peff.net>
On Thu, 5 Sep 2013, Jeff King wrote:
Show 10 quoted lines
> There are basically two solutions:
> 
>   1. Add a single-bit flag for "I am 0-padded in the real data". We
>      could probably even squeeze it into the same integer.
> 
>   2. Have a "classic" section of the pack that stores the raw object
>      bytes. For objects which do not match our expectations, store them
>      raw instead of in v4 format. They will not get the benefit of v4
>      optimizations, but if they are the minority of objects, that will
>      only end up with a slight slow-down.

That is basically what I just suggested. But instead of a special section, simply using a special object type number would do it.

I'm even wondering if that couldn't be used for fixing a thin pack instead of the special provision I just added last night.

Nicolas
Previous: A Large Angry SCMNext: Jeff King
Message 7 of 10 in “Zero padded file modes...”
  1. John SzakmeisterSep 5, 2013
  2. Jeff KingSep 5, 2013
  3. Duy NguyenSep 5, 2013
  4. Jeff KingSep 5, 2013
  5. Nicolas PitreSep 5, 2013
  6. A Large Angry SCMSep 5, 2013
  7. Nicolas PitreSep 5, 2013
  8. Jeff KingSep 5, 2013
  9. John SzakmeisterSep 5, 2013
  10. Jeff KingSep 5, 2013

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.