]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/gc: split out function to expire reflog entries
authorPatrick Steinhardt <ps@pks.im>
Tue, 8 Apr 2025 06:22:16 +0000 (08:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Apr 2025 14:53:27 +0000 (07:53 -0700)
commit3fef24ac3fbcc6ad9e325a293b59ee38645f2407
tree15d1e27d90dd219e2fe274a65662807b649b6b1b
parentd20fc193b663cd98364c07195e6cb38618a30c10
builtin/gc: split out function to expire reflog entries

We're about to introduce a new task for git-maintenance(1) that knows to
expire reflog entries. The logic will be shared with git-gc(1), which
already knows how to do this.

Pull out the common logic into a separate function so that we can share
the implementation between both builtins.

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