aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-12-12 09:56:54 +0100
committerJunio C Hamano <gitster@pobox.com>2014-12-12 11:43:49 -0800
commit8c22dd325437337064108409ff2241a842561a4b (patch)
treed94dc632779e8ae6916c7e896f8cf9e5ab5cc8b4 /builtin
parentddd64c566d0b9d110ec51e269b8ce8630fa36348 (diff)
downloadgit-8c22dd325437337064108409ff2241a842561a4b.tar.gz
git-8c22dd325437337064108409ff2241a842561a4b.tar.xz
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/reflog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c
index 9ee66d4eb..08867a289 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;
/*