Skip to content

Commit 8c22dd3

Browse files
mhaggergitster
authored andcommitted
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 <[email protected]> Reviewed-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ddd64c5 commit 8c22dd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/reflog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ struct expire_reflog_policy_cb {
5151
};
5252

5353
struct expire_reflog_cb {
54+
unsigned int flags;
5455
void *policy_cb;
5556
};
5657

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

436437
memset(&cb, 0, sizeof(cb));
437438
memset(&policy_cb, 0, sizeof(policy_cb));
439+
cb.flags = flags;
438440
cb.policy_cb = &policy_cb;
439441

440442
/*

0 commit comments

Comments
 (0)