aboutsummaryrefslogtreecommitdiffstats
path: root/reflog.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-08-01 11:27:11 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-01 11:27:11 -0700
commita2384a76e7d62ee5a628c82ee4e29c16c14c0168 (patch)
tree3c2a240673a5912999b7b4a86facc4691236f610 /reflog.h
parentMerge branch 'jc/do-not-scan-argv-without-parsing' (diff)
parentreflog: close leak of reflog expire entry (diff)
downloadgit-a2384a76e7d62ee5a628c82ee4e29c16c14c0168.tar.gz
git-a2384a76e7d62ee5a628c82ee4e29c16c14c0168.zip
Merge branch 'jk/unleak-reflog-expire-entry'
Leakfix. * jk/unleak-reflog-expire-entry: reflog: close leak of reflog expire entry
Diffstat (limited to 'reflog.h')
-rw-r--r--reflog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/reflog.h b/reflog.h
index 63bb56280f..74b3f3c4f0 100644
--- a/reflog.h
+++ b/reflog.h
@@ -34,6 +34,8 @@ struct reflog_expire_options {
int reflog_expire_config(const char *var, const char *value,
const struct config_context *ctx, void *cb);
+void reflog_clear_expire_config(struct reflog_expire_options *opts);
+
/*
* Adapt the options so that they apply to the given refname. This applies any
* per-reference reflog expiry configuration that may exist to the options.