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 <mhagger@alum.mit.edu> Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Dec 12, 2014 at 09:56 UTC 8c22dd325437337064108409ff2241a842561a4b
1 file changed +2
builtin/reflog.c
+2
@@ -51,6 +51,7 @@ struct expire_reflog_policy_cb {
51 };
52
53 struct expire_reflog_cb {
54 + unsigned int flags;
55 void *policy_cb;
56 };
57
@@ -435,6 +436,7 @@ static int expire_reflog(const char *refname, const unsigned char *sha1,
436
437 memset(&cb, 0, sizeof(cb));
438 memset(&policy_cb, 0, sizeof(policy_cb));
439 + cb.flags = flags;
440 cb.policy_cb = &policy_cb;
441
442 /*