git/builtin/reflog.c

#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "revision.h"
#include "reachable.h"
#include "wildmatch.h"
#include "worktree.h"
#include "reflog.h"
#include "refs.h"
#include "parse-options.h"

#define BUILTIN_REFLOG_SHOW_USAGE

#define BUILTIN_REFLOG_LIST_USAGE

#define BUILTIN_REFLOG_EXPIRE_USAGE

#define BUILTIN_REFLOG_DELETE_USAGE

#define BUILTIN_REFLOG_EXISTS_USAGE

static const char *const reflog_show_usage[] =;

static const char *const reflog_list_usage[] =;

static const char *const reflog_expire_usage[] =;

static const char *const reflog_delete_usage[] =;

static const char *const reflog_exists_usage[] =;

static const char *const reflog_usage[] =;

static timestamp_t default_reflog_expire;
static timestamp_t default_reflog_expire_unreachable;

struct worktree_reflogs {};

static int collect_reflog(const char *ref, void *cb_data)
{}

static struct reflog_expire_cfg {} *reflog_expire_cfg, **reflog_expire_cfg_tail;

static struct reflog_expire_cfg *find_cfg_ent(const char *pattern, size_t len)
{}

/* expiry timer slot */
#define EXPIRE_TOTAL
#define EXPIRE_UNREACH

static int reflog_expire_config(const char *var, const char *value,
				const struct config_context *ctx, void *cb)
{}

static void set_reflog_expiry_param(struct cmd_reflog_expire_cb *cb, const char *ref)
{}

static int expire_unreachable_callback(const struct option *opt,
				 const char *arg,
				 int unset)
{}

static int expire_total_callback(const struct option *opt,
				 const char *arg,
				 int unset)
{}

static int cmd_reflog_show(int argc, const char **argv, const char *prefix)
{}

static int show_reflog(const char *refname, void *cb_data UNUSED)
{}

static int cmd_reflog_list(int argc, const char **argv, const char *prefix)
{}

static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
{}

static int cmd_reflog_delete(int argc, const char **argv, const char *prefix)
{}

static int cmd_reflog_exists(int argc, const char **argv, const char *prefix)
{}

/*
 * main "reflog"
 */

int cmd_reflog(int argc,
	       const char **argv,
	       const char *prefix,
	       struct repository *repository)
{}