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

Re: [PATCH] Doc: clarify that pack-objects makes packs, plural

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 24, 2017, 19:09 UTC
Message-ID
<xmqqd17kwzox.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170824133842.vqzydienll6ka4vw@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 19 quoted lines
> On Thu, Aug 24, 2017 at 12:27:52AM -0700, Jacob Keller wrote:
>
>> > For the sneaker-net case, you are much better off generating a single
>> > pack and then using "split" and "cat" to reconstruct it on the other end
>> > Not that I think we should go into such detail in the manpage, but I
>> > have to wonder if --max-pack-size has outlived its usefulness. The only
>> > use case I can think of is a filesystem that cannot hold files larger
>> > than N bytes.
>> 
>> Is it possible to detect on the file system that we can't store files
>> that large, and remove the option, while enabling it only when we
>> detect the filesystem is unable to store large files?
>
> I'm not sure how easy it would be to do such a check. But even if it
> was, I'm not sure that buys us much. We'd still carry the code. We could
> in theory remove the option, simplifying the interface. But that removes
> the possibility of somebody wanting to stage the smaller packfiles on a
> more capable filesystem in preparation for moving them to the
> more-limited one.

I agree that it would not help anybody to _disable_ --max-pack-size feature for those on certain filesystems, but it _might_ make sense to automatically _enable_ it (and set it to the maximum number) when your destination filesystem is limited.

Even in that case, failing with an error code from the filesystem and then asking the user to redo with --max-pack-size specified wouldn't be the end of the world, though.

Previous: Jeff King
Message 7 of 7 in “Doc: clarify that pack-objects makes packs, plural”
  1. Doc: clarify that pack-objects makes packs, pluralJonathan Tan, Aug 22, 2017
  2. Junio C HamanoAug 22, 2017
  3. Doc: clarify that pack-objects makes packs, pluralJonathan Tan, Aug 23, 2017
  4. Jeff KingAug 23, 2017
  5. Jacob KellerAug 24, 2017
  6. Jeff KingAug 24, 2017
  7. Junio C HamanoAug 24, 2017

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.