Add a flags field to "struct expire_reflog_cb", and pass the flags argument through to expire_reflog_ent(). In a moment we will start using it to pass through flags that expire_reflog_ent() needs. Signed-off-by: Michael Haggerty <mhagger@xxxxxxxxxxxx> Reviewed-by: Stefan Beller <sbeller@xxxxxxxxxx> --- builtin/reflog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/reflog.c b/builtin/reflog.c index 9ee66d4..08867a2 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -51,6 +51,7 @@ struct expire_reflog_policy_cb { }; struct expire_reflog_cb { + unsigned int flags; void *policy_cb; }; @@ -435,6 +436,7 @@ static int expire_reflog(const char *refname, const unsigned char *sha1, memset(&cb, 0, sizeof(cb)); memset(&policy_cb, 0, sizeof(policy_cb)); + cb.flags = flags; cb.policy_cb = &policy_cb; /* -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html