git/pack-objects.c

#include "git-compat-util.h"
#include "object.h"
#include "pack.h"
#include "pack-objects.h"
#include "packfile.h"
#include "parse.h"

static uint32_t locate_object_entry_hash(struct packing_data *pdata,
					 const struct object_id *oid,
					 int *found)
{}

static inline uint32_t closest_pow2(uint32_t v)
{}

static void rehash_objects(struct packing_data *pdata)
{}

struct object_entry *packlist_find(struct packing_data *pdata,
				   const struct object_id *oid)
{}

static void prepare_in_pack_by_idx(struct packing_data *pdata)
{}

/*
 * A new pack appears after prepare_in_pack_by_idx() has been
 * run. This is likely a race.
 *
 * We could map this new pack to in_pack_by_idx[] array, but then we
 * have to deal with full array anyway. And since it's hard to test
 * this fall back code, just stay simple and fall back to using
 * in_pack[] array.
 */
void oe_map_new_pack(struct packing_data *pack)
{}

/* assume pdata is already zero'd by caller */
void prepare_packing_data(struct repository *r, struct packing_data *pdata)
{}

void clear_packing_data(struct packing_data *pdata)
{}

struct object_entry *packlist_alloc(struct packing_data *pdata,
				    const struct object_id *oid)
{}

void oe_set_delta_ext(struct packing_data *pdata,
		      struct object_entry *delta,
		      const struct object_id *oid)
{}