From: Laveesh Bansal <laveeshb@laveeshbansal.com>
To: git@vger.kernel.org
Cc: "Junio C Hamano" <gitster@pobox.com>,
"Patrick Steinhardt" <ps@pks.im>,
"Karthik Nayak" <karthik.188@gmail.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: [PATCH v4 0/2] builtin/reflog: expire each reflog only once
Date: Tue, 1 Dec 2026 07:43:03 -0800 [thread overview]
Message-ID: <cover.1796138650.git.laveeshb@laveeshbansal.com> (raw)
In-Reply-To: <cover.1795290319.git.laveeshb@laveeshbansal.com>
This series makes "git reflog expire" expire each reflog only once. 1/2
puts the --all and the named-ref paths in one loop without changing
behavior. 2/2 skips a reflog that was already expired in this run.
Changes since v3 after review [1]:
- 2/2: I added a NEEDSWORK comment that says the check does not catch
names that reach a reflog through a worktree prefix.
[1] https://lore.kernel.org/all/aw64_jhQf4a4JJQX@pks.im/
Assisted-by: Claude Sonnet 5.5
Laveesh Bansal (2):
builtin/reflog: expire --all and named refs in one loop
builtin/reflog: expire each reflog only once
builtin/reflog.c | 63 ++++++++++++++++++++++++++++-------------------
t/t1410-reflog.sh | 37 ++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 26 deletions(-)
--
2.54.0
next prev parent reply other threads:[~2026-12-01 15:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-08 1:22 [PATCH] builtin/reflog: expire --all and named refs in one loop Laveesh Bansal
2026-11-09 9:40 ` Patrick Steinhardt
2026-11-09 16:13 ` Laveesh Bansal
2026-11-10 7:09 ` Patrick Steinhardt
2026-11-09 20:04 ` Junio C Hamano
2026-11-10 15:26 ` [PATCH v2 0/2] builtin/reflog: expire each reflog only once Laveesh Bansal
2026-11-10 15:26 ` [PATCH v2 1/2] builtin/reflog: expire --all and named refs in one loop Laveesh Bansal
2026-11-10 15:26 ` [PATCH v2 2/2] builtin/reflog: expire each reflog only once Laveesh Bansal
2026-11-11 12:42 ` Patrick Steinhardt
2026-11-21 19:54 ` Laveesh Bansal
2026-11-21 19:53 ` [PATCH v3 0/2] " Laveesh Bansal
2026-11-21 19:53 ` [PATCH v3 1/2] builtin/reflog: expire --all and named refs in one loop Laveesh Bansal
2026-11-21 19:53 ` [PATCH v3 2/2] builtin/reflog: expire each reflog only once Laveesh Bansal
2026-12-01 12:09 ` Patrick Steinhardt
2026-12-01 15:43 ` Laveesh Bansal [this message]
2026-12-01 15:43 ` [PATCH v4 1/2] builtin/reflog: expire --all and named refs in one loop Laveesh Bansal
2026-12-01 15:43 ` [PATCH v4 2/2] builtin/reflog: expire each reflog only once Laveesh Bansal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1796138650.git.laveeshb@laveeshbansal.com \
--to=laveeshb@laveeshbansal.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=karthik.188@gmail.com \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.