#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "lockfile.h"
#include "quote.h"
#include "cache-tree.h"
#include "parse-options.h"
#include "entry.h"
#include "parallel-checkout.h"
#include "read-cache-ll.h"
#include "setup.h"
#include "sparse-index.h"
#define CHECKOUT_ALL …
static int nul_term_line;
static int checkout_stage;
static int ignore_skip_worktree;
static int to_tempfile = …;
static char topath[4][TEMPORARY_FILENAME_LENGTH + 1];
static struct checkout state = …;
static void write_tempfile_record(const char *name, const char *prefix)
{ … }
static int checkout_file(const char *name, const char *prefix)
{ … }
static int checkout_all(const char *prefix, int prefix_length)
{ … }
static const char * const builtin_checkout_index_usage[] = …;
static int option_parse_stage(const struct option *opt,
const char *arg, int unset)
{ … }
int cmd_checkout_index(int argc,
const char **argv,
const char *prefix,
struct repository *repo UNUSED)
{ … }