#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "gettext.h"
#include "object-store-ll.h"
#include "reflog.h"
#include "refs.h"
#include "revision.h"
#include "tree.h"
#include "tree-walk.h"
#define INCOMPLETE …
#define STUDYING …
#define REACHABLE …
static int tree_is_complete(const struct object_id *oid)
{ … }
static int commit_is_complete(struct commit *commit)
{ … }
static int keep_entry(struct commit **it, struct object_id *oid)
{ … }
static void mark_reachable(struct expire_reflog_policy_cb *cb)
{ … }
static int unreachable(struct expire_reflog_policy_cb *cb, struct commit *commit, struct object_id *oid)
{ … }
int should_expire_reflog_ent(struct object_id *ooid, struct object_id *noid,
const char *email UNUSED,
timestamp_t timestamp, int tz UNUSED,
const char *message UNUSED, void *cb_data)
{ … }
int should_expire_reflog_ent_verbose(struct object_id *ooid,
struct object_id *noid,
const char *email,
timestamp_t timestamp, int tz,
const char *message, void *cb_data)
{ … }
static int push_tip_to_list(const char *refname UNUSED,
const char *referent UNUSED,
const struct object_id *oid,
int flags, void *cb_data)
{ … }
static int is_head(const char *refname)
{ … }
void reflog_expiry_prepare(const char *refname,
const struct object_id *oid,
void *cb_data)
{ … }
void reflog_expiry_cleanup(void *cb_data)
{ … }
int count_reflog_ent(struct object_id *ooid UNUSED,
struct object_id *noid UNUSED,
const char *email UNUSED,
timestamp_t timestamp, int tz UNUSED,
const char *message UNUSED, void *cb_data)
{ … }
int reflog_delete(const char *rev, enum expire_reflog_flags flags, int verbose)
{ … }