MCPcopy Create free account
hub / github.com/git/git / cmd_register

Function cmd_register

scalar.c:627–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627static int cmd_register(int argc, const char **argv)
628{
629 int maintenance = 1;
630 struct option options[] = {
631 OPT_BOOL(0, "maintenance", &maintenance,
632 N_("specify if background maintenance should be enabled")),
633 OPT_END(),
634 };
635 const char * const usage[] = {
636 N_("scalar register [--[no-]maintenance] [<enlistment>]"),
637 NULL
638 };
639
640 argc = parse_options(argc, argv, NULL, options,
641 usage, 0);
642
643 setup_enlistment_directory(argc, argv, usage, options, NULL);
644
645 /* If --no-maintenance, then leave maintenance as-is. */
646 return register_dir(maintenance);
647}
648
649static int get_scalar_repos(const char *key, const char *value,
650 const struct config_context *ctx UNUSED,

Callers

nothing calls this directly

Calls 3

parse_optionsFunction · 0.85
register_dirFunction · 0.85

Tested by

no test coverage detected