diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-08 08:22:14 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-08 07:53:26 -0700 |
| commit | 964f364de9935592ff187cdf26b87a75e762c26c (patch) | |
| tree | e94974d0d978fcabc6f5dee65bd87f530378f464 /reflog.h | |
| parent | 85658275702bad04c916e2709fe33d2efc6de5e4 (diff) | |
| download | git-964f364de9935592ff187cdf26b87a75e762c26c.tar.gz | |
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>
Diffstat (limited to 'reflog.h')
| -rw-r--r-- | reflog.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2,7 +2,15 @@ #define REFLOG_H #include "refs.h" +struct reflog_expire_entry_option { + struct reflog_expire_entry_option *next; + timestamp_t expire_total; + timestamp_t expire_unreachable; + char pattern[FLEX_ARRAY]; +}; + struct reflog_expire_options { + struct reflog_expire_entry_option *entries, **entries_tail; int stalefix; int explicit_expiry; timestamp_t default_expire_total; |
