static int inside_git_dir = -1;
static int inside_work_tree = -1;
static int work_tree_config_is_bogus;
- static struct string_list unknown_extensions = STRING_LIST_INIT_DUP;
+static struct startup_info the_startup_info;
+struct startup_info *startup_info = &the_startup_info;
+
/*
* The input parameter must contain an absolute path, and it must already be
* normalized.
return -(i & 0666);
}
- int check_repository_format_version(const char *var, const char *value, void *cb)
- {
- int ret = check_repo_format(var, value, cb);
- if (ret)
- return ret;
- if (strcmp(var, "core.bare") == 0) {
- is_bare_repository_cfg = git_config_bool(var, value);
- if (is_bare_repository_cfg == 1)
- inside_work_tree = -1;
- } else if (strcmp(var, "core.worktree") == 0) {
- if (!value)
- return config_error_nonbool(var);
- free(git_work_tree_cfg);
- git_work_tree_cfg = xstrdup(value);
- inside_work_tree = -1;
- }
- return 0;
- }
-
- int check_repository_format(void)
+ void check_repository_format(void)
{
check_repository_format_gently(get_git_dir(), NULL);
- return 0;
+ startup_info->have_repository = 1;
}
/*