#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "skipping.h"
#include "../commit.h"
#include "../fetch-negotiator.h"
#include "../hex.h"
#include "../prio-queue.h"
#include "../refs.h"
#include "../repository.h"
#include "../tag.h"
#define COMMON …
#define ADVERTISED …
#define SEEN …
#define POPPED …
static int marked;
struct entry { … };
struct data { … };
static int compare(const void *a_, const void *b_, void *data UNUSED)
{ … }
static struct entry *rev_list_push(struct data *data, struct commit *commit, int mark)
{ … }
static int clear_marks(const char *refname, const char *referent UNUSED, const struct object_id *oid,
int flag UNUSED,
void *cb_data UNUSED)
{ … }
static void mark_common(struct data *data, struct commit *seen_commit)
{ … }
static int push_parent(struct data *data, struct entry *entry,
struct commit *to_push)
{ … }
static const struct object_id *get_rev(struct data *data)
{ … }
static void known_common(struct fetch_negotiator *n, struct commit *c)
{ … }
static void add_tip(struct fetch_negotiator *n, struct commit *c)
{ … }
static const struct object_id *next(struct fetch_negotiator *n)
{ … }
static int ack(struct fetch_negotiator *n, struct commit *c)
{ … }
static void release(struct fetch_negotiator *n)
{ … }
void skipping_negotiator_init(struct fetch_negotiator *negotiator)
{ … }