]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/reflog: stop storing per-reflog expiry dates globally
authorPatrick Steinhardt <ps@pks.im>
Tue, 8 Apr 2025 06:22:14 +0000 (08:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Apr 2025 14:53:26 +0000 (07:53 -0700)
commit964f364de9935592ff187cdf26b87a75e762c26c
treee94974d0d978fcabc6f5dee65bd87f530378f464
parent85658275702bad04c916e2709fe33d2efc6de5e4
builtin/reflog: stop storing per-reflog expiry dates globally

As described in the preceding commit, the per-reflog expiry dates are
stored in a global pair of variables. Refactor the code so that they are
contained in `struct reflog_expire_options` to make the structure useful
in other contexts.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c
reflog.h