Skip to content

Commit

Permalink
expire_reflog(): pass flags through to expire_reflog_ent()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Dec 12, 2014
1 parent ddd64c5 commit 8c22dd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/reflog.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ struct expire_reflog_policy_cb {
};

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

Expand Down Expand Up @@ -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;

/*
Expand Down

0 comments on commit 8c22dd3

Please sign in to comment.