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

Re: [PATCH 2/3] pack-objects: WIP add max-blob-size filtering

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 22, 2017, 22:14 UTC
Message-ID
<xmqqvannhdpv.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170622145440.7609fa8b@twelve2.svl.corp.google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
Show 8 quoted lines
> On Thu, 22 Jun 2017 20:36:14 +0000
> Jeff Hostetler <git@jeffhostetler.com> wrote:
>
>> +static signed long max_blob_size = -1;
>
> FYI Junio suggested "blob-max-bytes" when he looked at my patch [1].
>
> [1] https://public-inbox.org/git/xmqqmv9ryoym.fsf@gitster.mtv.corp.google.com/
To give credit to where credit is due, I learned this from akpm.

When you are tempted to say "size", "length", "weight", etc., if you think of a way to phrase it with a more concrete unit, you'd end up with a much less ambiguous name. People can imagine max_blob_size is counted in kilobytes, or megabytes, or whatever. There is no room in max_blob_bytes to be interpreted in multiple ways.

Previous: Jonathan TanNext: Jeff Hostetler
Message 4 of 12 in “WIP list-objects and pack-objects for partial clone”
  1. 0/3 WIP list-objects and pack-objects for partial cloneJeff Hostetler, Jun 22, 2017
  2. 2/3 pack-objects: WIP add max-blob-size filteringJeff Hostetler, Jun 22, 2017
  3. Jonathan TanJun 22, 2017
  4. Junio C HamanoJun 22, 2017
  5. 3/3 pack-objects: add t5317 to test max-blob-sizeJeff Hostetler, Jun 22, 2017
  6. 1/3 list-objects: add filter_blob to traverse_commit_listJeff Hostetler, Jun 22, 2017
  7. Jonathan TanJun 22, 2017
  8. Jonathan TanJun 22, 2017
  9. Jeff HostetlerJun 23, 2017
  10. Junio C HamanoJun 28, 2017
  11. Jeff HostetlerJun 28, 2017
  12. Junio C HamanoJun 28, 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.