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

Re: [PATCH] docs/git-pack-refs: document heuristic used for packing loose refs

From
Patrick Steinhardt <ps@pks.im>
Date
Jul 8, 2025, 11:48 UTC
Message-ID
<aG0FcY_SVqe9pe4A@pks.im>
In-Reply-To
<CAOLa=ZSmY8ooXL1c-jE7tqjfMuz2o+wkWaV6W3_XXQFncv0JrA@mail.gmail.com>
On Tue, Jul 08, 2025 at 04:43:42AM -0700, Karthik Nayak wrote:
Show 19 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
> > diff --git a/Documentation/git-pack-refs.adoc b/Documentation/git-pack-refs.adoc
> > index 652c5497715..42b90051e69 100644
> > --- a/Documentation/git-pack-refs.adoc
> > +++ b/Documentation/git-pack-refs.adoc
> > @@ -66,7 +66,10 @@ Pack refs as needed depending on the current state of the ref database. The
> >  behavior depends on the ref format used by the repository and may change in the
> >  future.
> >  +
> > -	- "files": No special handling for `--auto` has been implemented.
> > +	- "files": Loose references are packed into the `packed-refs` file
> > +	  based on the ratio of loose references to the size of the
> > +	  `packed-refs` file. The bigger the `packed-refs` file, the more loose
> > +	  references need to exist before we repack.
> >  +
> 
> Nice. The explanation has sufficient information without going too much
> into detail. Perhaps a small nit would be s/ratio/logarithmic ratio/,
> but I'm happy with this as is.

I was very much on the fence on whether to add "logarithmic" in there or not. I ultimately felt like it hinted too much at how exactly it works without really giving enough information to fully understand it, so it felt a bit useless to me to add "logarithmic".

I don't have a strong opinion though, and it doesn't seem like you feel strongly about it, either. So for now I'll keep this as-is, but I'm happy to change it if others also have a slight preference for adding the word in.

Thanks!
Patrick
Previous: Karthik NayakNext: Junio C Hamano
Message 3 of 4 in “docs/git-pack-refs: document heuristic used for packing loose refs”
  1. docs/git-pack-refs: document heuristic used for packing loose refsPatrick Steinhardt, Jul 8, 2025
  2. Karthik NayakJul 8, 2025
  3. Patrick SteinhardtJul 8, 2025
  4. Junio C HamanoJul 8, 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.