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

Re: [PATCH] make the pack index version configurable

From
David Symonds <dsymonds@gmail.com>
Date
Nov 2, 2007, 03:42 UTC
Message-ID
<ee77f5c20711012042r39c6303em2a8140e8348051d@mail.gmail.com>
In-Reply-To
<alpine.LFD.0.9999.0711012312480.21255@xanadu.home>
On 11/2/07, Nicolas Pitre <nico@cam.org> wrote:
Show 9 quoted lines
>
> +pack.indexVersion::
> +       Specify the default pack index version.  Valid values are 1 for
> +       legacy pack index used by Git versions prior to 1.5.2, and 2 for
> +       the new pack index with capabilities for packs larger than 4 GB
> +       as well as proper protection against the repacking of corrupted
> +       packs.  Version 2 is selected and this config option ignored
> +       whenever the corresponding pack is larger than 2 GB.  Otherwise
> +       the default is 1.

If you're trying to force a previous pack version for some reason (backward compatibility, or whatever), this "feature" of automatic forcing version 2 for 2 GB packs might come as a nasty suprise. Wouldn't it be better to fail with an error?

Dave.
Previous: Nicolas PitreNext: Nicolas Pitre
Message 2 of 3 in “make the pack index version configurable”
  1. make the pack index version configurableNicolas Pitre, Nov 2, 2007
  2. David SymondsNov 2, 2007
  3. Nicolas PitreNov 2, 2007

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.