}
static int expire_reflog(const char *refname, const unsigned char *sha1,
- struct cmd_reflog_expire_cb *cmd)
+ unsigned int flags, struct cmd_reflog_expire_cb *cmd)
{
static struct lock_file reflog_lock;
struct expire_reflog_cb cb;
unsigned long now = time(NULL);
int i, status, do_all;
int explicit_expiry = 0;
+ unsigned int flags = 0;
default_reflog_expire_unreachable = now - 30 * 24 * 3600;
default_reflog_expire = now - 90 * 24 * 3600;
for (i = 0; i < collected.nr; i++) {
struct collected_reflog *e = collected.e[i];
set_reflog_expiry_param(&cb, explicit_expiry, e->reflog);
- status |= expire_reflog(e->reflog, e->sha1, &cb);
+ status |= expire_reflog(e->reflog, e->sha1, flags, &cb);
free(e);
}
free(collected.e);
continue;
}
set_reflog_expiry_param(&cb, explicit_expiry, ref);
- status |= expire_reflog(ref, sha1, &cb);
+ status |= expire_reflog(ref, sha1, flags, &cb);
}
return status;
}
{
struct cmd_reflog_expire_cb cb;
int i, status = 0;
+ unsigned int flags = 0;
memset(&cb, 0, sizeof(cb));
cb.expire_total = 0;
}
- status |= expire_reflog(ref, sha1, &cb);
+ status |= expire_reflog(ref, sha1, flags, &cb);
free(ref);
}
return status;