#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "abspath.h"
#include "advice.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "name-hash.h"
#include "object-file.h"
#include "pathspec.h"
#include "lockfile.h"
#include "dir.h"
#include "string-list.h"
#include "parse-options.h"
#include "read-cache-ll.h"
#include "setup.h"
#include "strvec.h"
#include "submodule.h"
#include "entry.h"
static const char * const builtin_mv_usage[] = …;
enum update_mode { … };
#define DUP_BASENAME …
#define KEEP_TRAILING_SLASH …
static void internal_prefix_pathspec(struct strvec *out,
const char *prefix,
const char **pathspec,
int count, unsigned flags)
{ … }
static char *add_slash(const char *path)
{ … }
#define SUBMODULE_WITH_GITDIR …
static const char *submodule_gitfile_path(const char *src, int first)
{ … }
static int index_range_of_same_dir(const char *src, int length,
int *first_p, int *last_p)
{ … }
static int empty_dir_has_sparse_contents(const char *name)
{ … }
static void remove_empty_src_dirs(const char **src_dir, size_t src_dir_nr)
{ … }
int cmd_mv(int argc,
const char **argv,
const char *prefix,
struct repository *repo UNUSED)
{ … }