#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "object.h"
#include "object-name.h"
#include "tree.h"
#include "tree-walk.h"
#include "cache-tree.h"
#include "unpack-trees.h"
#include "parse-options.h"
#include "repository.h"
#include "resolve-undo.h"
#include "setup.h"
#include "sparse-index.h"
#include "submodule.h"
static int nr_trees;
static int read_empty;
static struct tree *trees[MAX_UNPACK_TREES];
static int list_tree(struct object_id *oid)
{ … }
static const char * const read_tree_usage[] = …;
static int index_output_cb(const struct option *opt UNUSED, const char *arg,
int unset)
{ … }
static int exclude_per_directory_cb(const struct option *opt, const char *arg,
int unset)
{ … }
static void debug_stage(const char *label, const struct cache_entry *ce,
struct unpack_trees_options *o)
{ … }
static int debug_merge(const struct cache_entry * const *stages,
struct unpack_trees_options *o)
{ … }
static int git_read_tree_config(const char *var, const char *value,
const struct config_context *ctx, void *cb)
{ … }
int cmd_read_tree(int argc, const char **argv, const char *cmd_prefix)
{ … }