#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "default.h"
#include "../commit.h"
#include "../fetch-negotiator.h"
#include "../prio-queue.h"
#include "../refs.h"
#include "../repository.h"
#include "../tag.h"
#define COMMON …
#define COMMON_REF …
#define SEEN …
#define POPPED …
static int marked;
struct negotiation_state { … };
static void rev_list_push(struct negotiation_state *ns,
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 negotiation_state *ns, struct commit *commit,
int ancestors_only, int dont_parse)
{ … }
static const struct object_id *get_rev(struct negotiation_state *ns)
{ … }
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 default_negotiator_init(struct fetch_negotiator *negotiator)
{ … }