🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
1 messages
1 total messages Started by Laveesh Bansal Sat, 21 Nov 2026 19:54
Re: [PATCH v2 2/2] builtin/reflog: expire each reflog only once
#3548
Author: Laveesh Bansal
Date: Sat, 21 Nov 2026 19:54
22 lines
10069 bytes
Patrick Steinhardt <ps@pks.im> writes:

> Isn't this note here important information to point out in the commit
> message? It sounds like a bug to me that we behave differently
> depending on how many times a refname is passed.

Yes.  v3 moves it into the commit message.

> Hmm. This here retain the current ordering. But is there a reason why
> we have to maintain it?

The order can matter.  With --updateref, expiring a branch can move it,
and "HEAD" is checked against every ref tip, so expiring "HEAD" before
or after that branch can give different results.  Sorting would change
the order, so v3 keeps it and uses a strset, which is one lookup per
name.

> Arguably, if the above is a bug, we should also have a test for it
> here.

v3 adds one for --updateref.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads