aboutsummaryrefslogtreecommitdiffstats
path: root/reflog.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-04-08 08:22:12 +0200
committerJunio C Hamano <gitster@pobox.com>2025-04-08 07:53:25 -0700
commit2ed800839904d598b6c67e6ed2d57276bef9777d (patch)
tree4d1f69e94fd5a8894480b42b22157b4a0308bc1a /reflog.h
parent08bdfd453584e489d5a551aecbdcb77584e1b958 (diff)
downloadgit-2ed800839904d598b6c67e6ed2d57276bef9777d.tar.gz
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>
Diffstat (limited to 'reflog.h')
-rw-r--r--reflog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/reflog.h b/reflog.h
index d2906fb9f8..eb948119e5 100644
--- a/reflog.h
+++ b/reflog.h
@@ -2,7 +2,7 @@
#define REFLOG_H
#include "refs.h"
-struct cmd_reflog_expire_cb {
+struct reflog_expire_options {
int stalefix;
int explicit_expiry;
timestamp_t expire_total;
@@ -18,7 +18,7 @@ struct expire_reflog_policy_cb {
} unreachable_expire_kind;
struct commit_list *mark_list;
unsigned long mark_limit;
- struct cmd_reflog_expire_cb cmd;
+ struct reflog_expire_options opts;
struct commit *tip_commit;
struct commit_list *tips;
unsigned int dry_run:1;