Re: [PATCH] reflog: fix default expiry periods
- From
Jeff King <peff@peff.net>
- Date
- Sep 22, 2026, 18:02 UTC
- Message-ID
- <20260922180251.GA18803@coredump.intra.peff.net>
- In-Reply-To
- <xmqq5wzxfb79.fsf@gitster.g>
On Tue, Sep 22, 2026 at 10:27:38AM -0700, Junio C Hamano wrote:
Show 19 quoted lines
> Pushkar Singh <pushkarkumarsingh1970@gmail.com> writes: > > > The default expiry periods for reflog entries are reversed in > > REFLOG_EXPIRE_OPTIONS_INIT(). This causes reachable entries to > > expire after 30 days instead of the documented 90 days. > > > > Restore the intended 90-day expiry for reachable entries and > > 30-day expiry for unreachable entries. > > > > Add a regression test for a reachable reflog entry that is > > 60 days old. > > Does this breakage date back to the beginning of the reflog expire > feature, or was it working perfectly fine but was broken sometime > ago? Do we know where the breakge happened, and why? Those are a > lot more relevant things to describe in the first paragraph. Once > the problem is described clearly enough in a simple case like this, > the solution to the problem is so obvious that latter two paragraphs > do not need to be said.
I had the same question. They were flipped by 8565827570 (builtin/reflog: stop storing default reflog expiry dates globally, 2025-04-08). That definitely should go in the commit message.
-Peff