git/negotiator/default.c

#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"

/* Remember to update object flag allocation in object.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)
{}

/*
 * This function marks a rev and its ancestors as common.
 * In some cases, it is desirable to mark only the ancestors (for example
 * when only the server does not yet know that they are common).
 */
static void mark_common(struct negotiation_state *ns, struct commit *commit,
		int ancestors_only, int dont_parse)
{}

/*
 * Get the next rev to send, ignoring the common.
 */
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)
{}