]> git.ipfire.org Git - thirdparty/git.git/commit
reflog: rename `cmd_reflog_expire_cb` to `reflog_expire_options`
authorPatrick Steinhardt <ps@pks.im>
Tue, 8 Apr 2025 06:22:12 +0000 (08:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Apr 2025 14:53:25 +0000 (07:53 -0700)
commit2ed800839904d598b6c67e6ed2d57276bef9777d
tree4d1f69e94fd5a8894480b42b22157b4a0308bc1a
parent08bdfd453584e489d5a551aecbdcb77584e1b958
reflog: rename `cmd_reflog_expire_cb` to `reflog_expire_options`

We're about to expose `struct cmd_reflog_expire_cb` via "reflog.h" so
that we can also use this structure in "builtin/gc.c". Once we make it
accessible to a wider scope though it becomes awkwardly named, as it
isn't only useful in the context of a callback. Instead, the function is
containing all kinds of options relevant to whether or not a reflog
entry should be expired.

Rename the structure to `reflog_expire_options` to prepare for this.

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