diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-08 08:22:12 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-08 07:53:25 -0700 |
| commit | 2ed800839904d598b6c67e6ed2d57276bef9777d (patch) | |
| tree | 4d1f69e94fd5a8894480b42b22157b4a0308bc1a /reflog.h | |
| parent | 08bdfd453584e489d5a551aecbdcb77584e1b958 (diff) | |
| download | git-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
