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

Re: [PATCH 2/2] maintenance: add loose-objects.batchSize config

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 24, 2025, 06:11 UTC
Message-ID
<xmqqbjtrot4e.fsf@gitster.g>
In-Reply-To
<6ed537862fa7585928fde33d21b77367a7fb708d.1742777512.git.gitgitgadget@gmail.com>
"Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Derrick Stolee <stolee@gmail.com>
>
> The 'loose-objects' task of 'git maintenance run' first deletes loose
> objects that exit within packfiles and then collects loose objects into

"exit" -> "exist"? It may read better to also do "collects" -> "collects remaining".

Show 8 quoted lines
> a packfile. This second step uses an implicit limit of fifty thousand
> that cannot be modified by users.
>
> Add a new config option that allows this limit to be adjusted or ignored
> entirely.
>
> While creating tests for this option, I noticed that actually there was
> an off-by-one error due to the strict comparison in the limit check.

Ahh, I, contrary to my usual routine, started reading from the code change before reading the proposed log message and was wondering about this exact point.

> +	/* If batch_size is INT_MAX, then this will return 0 always. */
Cute ;-).
>  	return ++(d->count) > d->batch_size;
>  }
Previous: Derrick Stolee via GitGitGadget
Message 4 of 4 in “Allow configuration for loose-objects maintenance task”
  1. 0/2 Allow configuration for loose-objects maintenance taskDerrick Stolee via GitGitGadget, Mar 24, 2025
  2. 1/2 maintenance: force progress/no-quiet to childrenDerrick Stolee via GitGitGadget, Mar 24, 2025
  3. 2/2 maintenance: add loose-objects.batchSize configDerrick Stolee via GitGitGadget, Mar 24, 2025
  4. Junio C HamanoMar 24, 2025

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.