git/ls-refs.c

#define USE_THE_REPOSITORY_VARIABLE

#include "git-compat-util.h"
#include "environment.h"
#include "gettext.h"
#include "hash.h"
#include "hex.h"
#include "repository.h"
#include "refs.h"
#include "strvec.h"
#include "ls-refs.h"
#include "pkt-line.h"
#include "config.h"
#include "string-list.h"

static enum {}

/*
 * If we see this many or more "ref-prefix" lines from the client, we consider
 * it "too many" and will avoid using the prefix feature entirely.
 */
#define TOO_MANY_PREFIXES

/*
 * Check if one of the prefixes is a prefix of the ref.
 * If no prefixes were provided, all refs match.
 */
static int ref_match(const struct strvec *prefixes, const char *refname)
{}

struct ls_refs_data {};

static int send_ref(const char *refname, const char *referent UNUSED, const struct object_id *oid,
		    int flag, void *cb_data)
{}

static void send_possibly_unborn_head(struct ls_refs_data *data)
{}

static int ls_refs_config(const char *var, const char *value,
			  const struct config_context *ctx UNUSED,
			  void *cb_data)
{}

int ls_refs(struct repository *r, struct packet_reader *request)
{}

int ls_refs_advertise(struct repository *r, struct strbuf *value)
{}