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

Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 1, 2011, 17:50 UTC
Message-ID
<7voc5uenmy.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTiksROE_dQTUn3Y_1Op6NDpGzEsSJ70JNYyYrufS@mail.gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
Show 5 quoted lines
>> Erik, please check the made-up commit log message and sign it off.
>> Will merge to 'next' after that.
>
> Do you have any hint on how I can create a repo with more than 2048
> packs so I can test that the patch works?

A stupid and brute force way is to prepare an empty bare repository, add something like the following to its config:

    [transfer]
            unpacklimit = 1
    [gc]
            auto = 0
            autopacklimit = 0

and push into it from a random existing repository starting from a reasonably old commit, walking to a newer commit. You can use something like (totally untested):

        git rev-list --first-parent master |
        head -n 2000 |
        tac |
        while read commit
        do
		git push ../victim.git $commit:refs/heads/master
	done
Show 5 quoted lines
> There's also the added complication that _open_osfhandle also seems to
> be limited by this 2048 limit (see the third comment here:
> http://bugs.mysql.com/bug.php?id=24509). We use this function for
> pipes and sockets as well. This alone might be a reason to corner-case
> test the resulting binary on Windows properly.

As long as the use of osfhandles for non filedescriptors is reasonably bounded, it may be enough to make the 25 slop configurable per platform, no?

Previous: Erik Faye-LundNext: Johannes Sixt
Message 4 of 8 in “What's cooking in git.git (Feb 2011, #07; Mon, 28)”
  1. Junio C HamanoMar 1, 2011
  2. Jens LehmannMar 1, 2011
  3. Erik Faye-LundMar 1, 2011
  4. Junio C HamanoMar 1, 2011
  5. Johannes SixtMar 2, 2011
  6. Erik Faye-LundMar 2, 2011
  7. Erik Faye-LundMar 2, 2011
  8. Michael J GruberMar 5, 2011

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.