git/replace-object.c

#include "git-compat-util.h"
#include "gettext.h"
#include "hex.h"
#include "oidmap.h"
#include "object-store-ll.h"
#include "replace-object.h"
#include "refs.h"
#include "repository.h"
#include "commit.h"

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

void prepare_replace_object(struct repository *r)
{}

/* We allow "recursive" replacement. Only within reason, though */
#define MAXREPLACEDEPTH

/*
 * If a replacement for object oid has been set up, return the
 * replacement object's name (replaced recursively, if necessary).
 * The return value is either oid or a pointer to a
 * permanently-allocated value.  This function always respects replace
 * references, regardless of the value of r->settings.read_replace_refs.
 */
const struct object_id *do_lookup_replace_object(struct repository *r,
						 const struct object_id *oid)
{}

/*
 * This indicator determines whether replace references should be
 * respected process-wide, regardless of which repository is being
 * using at the time.
 */
static int read_replace_refs =;

void disable_replace_refs(void)
{}

int replace_refs_enabled(struct repository *r)
{}