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…@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