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

Re: [PATCH] Introduce the config variable pack.packSizeLimit

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 9, 2008, 05:31 UTC
Message-ID
<7vfxw2g0gb.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LSU.1.00.0802051423530.8543@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 8 quoted lines
> "git pack-objects" has the option --max-pack-size to limit the file
> size of the packs to a certain amount of bytes.  On platforms where
> the pack file size is limited by filesystem constraints, it is easy
> to forget this option, and this option does not exist for "git gc"
> to begin with.
>
> So introduce a config variable to set the default maximum, but make
> this overrideable by the command line.
The intention is good and all makes sense.
Show 6 quoted lines
> +test_expect_success \
> +    'honor pack.packSizeLimit' \
> +    'git config pack.packSizeLimit 200 &&
> +     packname_4=$(git pack-objects test-4 <obj-list) &&
> +     test 3 = $(ls test-4-*.pack | wc -l)'
> +
Where does "3" come from, and what could break it?
Previous: Johannes SchindelinNext: Junio C Hamano
Message 2 of 5 in “Introduce the config variable pack.packSizeLimit”
  1. Introduce the config variable pack.packSizeLimitJohannes Schindelin, Feb 5, 2008
  2. Junio C HamanoFeb 9, 2008
  3. Junio C HamanoFeb 9, 2008
  4. Johannes SchindelinFeb 9, 2008
  5. Junio C HamanoFeb 9, 2008

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.