#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "quote.h"
#include "strbuf.h"
#include "tree.h"
#include "parse-options.h"
#include "object-store-ll.h"
static struct treeent { … } **entries;
static int alloc, used;
static void append_to_tree(unsigned mode, struct object_id *oid, char *path)
{ … }
static int ent_compare(const void *a_, const void *b_)
{ … }
static void write_tree(struct object_id *oid)
{ … }
static const char *mktree_usage[] = …;
static void mktree_line(char *buf, int nul_term_line, int allow_missing)
{ … }
int cmd_mktree(int ac, const char **av, const char *prefix)
{ … }