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

Re: pack.packSizeLimit, safety checks

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 1, 2010, 17:19 UTC
Message-ID
<7vvdeg50x4.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.2.00.1002011100550.1681@xanadu.home>
Nicolas Pitre <nico@fluxnic.net> writes:
Show 6 quoted lines
> Grrrrr.  This is a terrible discrepency given that all the other 
> arguments in Git are always byte based, with the optional k/m/g suffix, 
> by using git_parse_ulong().  So IMHO I'd just change --max-pack-size to 
> be in line with all the rest and have it accept bytes instead of MB.  
> And of course I'd push such a change to be included in v1.7.0 along with 
> the other incompatible fixes.

All of the "other incompatible" changes had ample leading time for transition with warnings and all.

I am afraid that doing this "unit change" is way too late for 1.7.0, and it makes me somewhat unhappy to hear such a suggestion. It belittles all the careful planning that has been done for these other changes to help protect the users from transition pain.

Introduce --max-pack-megabytes that is a synonym for --max-pack-size for now, and warn when --max-pack-size is used; warn that --max-pack-size will count in bytes in 1.8.0. Ship 1.7.0 with that change. --max-pack-bytes can also be added if you feel like, while at it.

But changing the unit --max-pack-size counts in to bytes in 1.7.0 feels a bit too irresponsible for the existing users.

Previous: Junio C HamanoNext: Nicolas Pitre
Message 6 of 11 in “pack.packSizeLimit, safety checks”
  1. SergioFeb 1, 2010
  2. Nicolas PitreFeb 1, 2010
  3. Johannes SixtFeb 1, 2010
  4. Shawn O. PearceFeb 1, 2010
  5. Junio C HamanoFeb 1, 2010
  6. Junio C HamanoFeb 1, 2010
  7. Nicolas PitreFeb 1, 2010
  8. Junio C HamanoFeb 1, 2010
  9. Junio C HamanoFeb 4, 2010
  10. Nicolas PitreFeb 4, 2010
  11. Junio C HamanoFeb 4, 2010

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.