From: Michael Haggerty Date: Fri, 12 Dec 2014 08:56:54 +0000 (+0100) Subject: expire_reflog(): pass flags through to expire_reflog_ent() X-Git-Tag: v2.4.0-rc0~133^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c22dd325437337064108409ff2241a842561a4b;p=git expire_reflog(): pass flags through to expire_reflog_ent() 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 Reviewed-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/builtin/reflog.c b/builtin/reflog.c index 9ee66d4eb2..08867a2891 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; /*