#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "dir.h"
#include "hex.h"
#include "repository.h"
#include "refs.h"
#include "object.h"
#include "commit.h"
#include "tag.h"
#include "packfile.h"
#include "path.h"
#include "object-file.h"
#include "object-store-ll.h"
#include "server-info.h"
#include "strbuf.h"
#include "tempfile.h"
struct update_info_ctx { … };
static void uic_mark_stale(struct update_info_ctx *uic)
{ … }
static int uic_is_stale(const struct update_info_ctx *uic)
{ … }
__attribute__((format (printf, 2, 3)))
static int uic_printf(struct update_info_ctx *uic, const char *fmt, ...)
{ … }
static int update_info_file(char *path,
int (*generate)(struct update_info_ctx *),
int force)
{ … }
static int add_info_ref(const char *path, const char *referent UNUSED, const struct object_id *oid,
int flag UNUSED,
void *cb_data)
{ … }
static int generate_info_refs(struct update_info_ctx *uic)
{ … }
static int update_info_refs(int force)
{ … }
static struct pack_info { … } **info;
static int num_pack;
static struct pack_info *find_pack_by_name(const char *name)
{ … }
static int parse_pack_def(const char *packname, int old_cnt)
{ … }
static int read_pack_info_file(const char *infofile)
{ … }
static int compare_info(const void *a_, const void *b_)
{ … }
static void init_pack_info(const char *infofile, int force)
{ … }
static void free_pack_info(void)
{ … }
static int write_pack_info_file(struct update_info_ctx *uic)
{ … }
static int update_info_packs(int force)
{ … }
int update_server_info(int force)
{ … }