git/scalar.c

/*
 * The Scalar command-line interface.
 */

#define USE_THE_REPOSITORY_VARIABLE

#include "git-compat-util.h"
#include "abspath.h"
#include "gettext.h"
#include "parse-options.h"
#include "config.h"
#include "run-command.h"
#include "simple-ipc.h"
#include "fsmonitor-ipc.h"
#include "fsmonitor-settings.h"
#include "refs.h"
#include "dir.h"
#include "packfile.h"
#include "help.h"
#include "setup.h"
#include "trace2.h"

static void setup_enlistment_directory(int argc, const char **argv,
				       const char * const *usagestr,
				       const struct option *options,
				       struct strbuf *enlistment_root)
{}

LAST_ARG_MUST_BE_NULL
static int run_git(const char *arg, ...)
{}

struct scalar_config {};

static int set_scalar_config(const struct scalar_config *config, int reconfigure)
{}

static int have_fsmonitor_support(void)
{}

static int set_recommended_config(int reconfigure)
{}

static int toggle_maintenance(int enable)
{}

static int add_or_remove_enlistment(int add)
{}

static int start_fsmonitor_daemon(void)
{}

static int stop_fsmonitor_daemon(void)
{}

static int register_dir(void)
{}

static int unregister_dir(void)
{}

/* printf-style interface, expects `<key>=<value>` argument */
__attribute__((format (printf, 1, 2)))
static int set_config(const char *fmt, ...)
{}

static char *remote_default_branch(const char *url)
{}

static int delete_enlistment(struct strbuf *enlistment)
{}

/*
 * Dummy implementation; Using `get_version_info()` would cause a link error
 * without this.
 */
void load_builtin_commands(const char *prefix UNUSED,
			   struct cmdnames *cmds UNUSED)
{}

static int cmd_clone(int argc, const char **argv)
{}

static int cmd_diagnose(int argc, const char **argv)
{}

static int cmd_list(int argc, const char **argv UNUSED)
{}

static int cmd_register(int argc, const char **argv)
{}

static int get_scalar_repos(const char *key, const char *value,
			    const struct config_context *ctx UNUSED,
			    void *data)
{}

static int remove_deleted_enlistment(struct strbuf *path)
{}

static int cmd_reconfigure(int argc, const char **argv)
{}

static int cmd_run(int argc, const char **argv)
{}

static int cmd_unregister(int argc, const char **argv)
{}

static int cmd_delete(int argc, const char **argv)
{}

static int cmd_help(int argc, const char **argv)
{}

static int cmd_version(int argc, const char **argv)
{}

static struct {} builtins[] =;

int cmd_main(int argc, const char **argv)
{}