#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 { … }
#define TOO_MANY_PREFIXES …
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)
{ … }