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>
maint
Michael Haggerty 2014-12-12 09:56:54 +01:00 committed by Junio C Hamano
parent ddd64c566d
commit 8c22dd3254
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ struct expire_reflog_policy_cb {
}; };


struct expire_reflog_cb { struct expire_reflog_cb {
unsigned int flags;
void *policy_cb; void *policy_cb;
}; };


@ -435,6 +436,7 @@ static int expire_reflog(const char *refname, const unsigned char *sha1,


memset(&cb, 0, sizeof(cb)); memset(&cb, 0, sizeof(cb));
memset(&policy_cb, 0, sizeof(policy_cb)); memset(&policy_cb, 0, sizeof(policy_cb));
cb.flags = flags;
cb.policy_cb = &policy_cb; cb.policy_cb = &policy_cb;


/* /*