#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "hex.h"
#include "match-trees.h"
#include "strbuf.h"
#include "tree.h"
#include "tree-walk.h"
#include "object-store-ll.h"
static int score_missing(unsigned mode)
{ … }
static int score_differs(unsigned mode1, unsigned mode2)
{ … }
static int score_matches(unsigned mode1, unsigned mode2)
{ … }
static void *fill_tree_desc_strict(struct tree_desc *desc,
const struct object_id *hash)
{ … }
static int base_name_entries_compare(const struct name_entry *a,
const struct name_entry *b)
{ … }
static int score_trees(const struct object_id *hash1, const struct object_id *hash2)
{ … }
static void match_trees(const struct object_id *hash1,
const struct object_id *hash2,
int *best_score,
char **best_match,
const char *base,
int recurse_limit)
{ … }
static int splice_tree(const struct object_id *oid1, const char *prefix,
const struct object_id *oid2, struct object_id *result)
{ … }
void shift_tree(struct repository *r,
const struct object_id *hash1,
const struct object_id *hash2,
struct object_id *shifted,
int depth_limit)
{ … }
void shift_tree_by(struct repository *r,
const struct object_id *hash1,
const struct object_id *hash2,
struct object_id *shifted,
const char *shift_prefix)
{ … }