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

Re: [PATCH] builtin/reflog: say "would prune" for named refs with --dry-run

From
LBLaveesh Bansal <laveeshb@laveeshbansal.com>
Date
Oct 25, 2026, 19:15 UTC
Message-ID
<20261025191559.79141-1-laveeshb@laveeshbansal.com>
In-Reply-To
<xmqqqzhdy7pi.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
> That will help prevent a similar bug from ever happening again, as
> there would be only a single place that sets up how the expiration
> is called, instead of two we currently have.
Agreed, and I think the consolidation is doable.

I suggest keeping this patch as it is, since it fixes the reported bug. I'll look into what you describe as a separate patch after this one, and the tests added here would stay useful for that patch too.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “builtin/reflog: say "would prune" for named refs with --dry-run”
  1. builtin/reflog: say "would prune" for named refs with --dry-runLaveesh Bansal, Oct 24, 2026
  2. Junio C HamanoOct 25, 2026
  3. Laveesh BansalOct 25, 2026
  4. Junio C HamanoOct 26, 2026
  5. Patrick SteinhardtOct 29, 2026

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.