mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
Merge branch 'ps/config-wo-the-repository'
The config API had a set of convenience wrapper functions that implicitly use the_repository instance; they have been removed and inlined at the calling sites. * ps/config-wo-the-repository: (21 commits) config: fix sign comparison warnings config: move Git config parsing into "environment.c" config: remove unused `the_repository` wrappers config: drop `git_config_set_multivar()` wrapper config: drop `git_config_get_multivar_gently()` wrapper config: drop `git_config_set_multivar_in_file_gently()` wrapper config: drop `git_config_set_in_file_gently()` wrapper config: drop `git_config_set()` wrapper config: drop `git_config_set_gently()` wrapper config: drop `git_config_set_in_file()` wrapper config: drop `git_config_get_bool()` wrapper config: drop `git_config_get_ulong()` wrapper config: drop `git_config_get_int()` wrapper config: drop `git_config_get_string()` wrapper config: drop `git_config_get_string()` wrapper config: drop `git_config_get_string_multi()` wrapper config: drop `git_config_get_value()` wrapper config: drop `git_config_get_value()` wrapper config: drop `git_config_get()` wrapper config: drop `git_config_clear()` wrapper ...
This commit is contained in:
@@ -3592,25 +3592,25 @@ static void git_pack_config(void)
|
||||
int limit;
|
||||
unsigned long packsizelimit_value;
|
||||
|
||||
if (!git_config_get_ulong("pack.depth", &max_depth)) {
|
||||
if (!repo_config_get_ulong(the_repository, "pack.depth", &max_depth)) {
|
||||
if (max_depth > MAX_DEPTH)
|
||||
max_depth = MAX_DEPTH;
|
||||
}
|
||||
if (!git_config_get_int("pack.indexversion", &indexversion_value)) {
|
||||
if (!repo_config_get_int(the_repository, "pack.indexversion", &indexversion_value)) {
|
||||
pack_idx_opts.version = indexversion_value;
|
||||
if (pack_idx_opts.version > 2)
|
||||
git_die_config(the_repository, "pack.indexversion",
|
||||
"bad pack.indexVersion=%"PRIu32, pack_idx_opts.version);
|
||||
}
|
||||
if (!git_config_get_ulong("pack.packsizelimit", &packsizelimit_value))
|
||||
if (!repo_config_get_ulong(the_repository, "pack.packsizelimit", &packsizelimit_value))
|
||||
max_packsize = packsizelimit_value;
|
||||
|
||||
if (!git_config_get_int("fastimport.unpacklimit", &limit))
|
||||
if (!repo_config_get_int(the_repository, "fastimport.unpacklimit", &limit))
|
||||
unpack_limit = limit;
|
||||
else if (!git_config_get_int("transfer.unpacklimit", &limit))
|
||||
else if (!repo_config_get_int(the_repository, "transfer.unpacklimit", &limit))
|
||||
unpack_limit = limit;
|
||||
|
||||
git_config(git_default_config, NULL);
|
||||
repo_config(the_repository, git_default_config, NULL);
|
||||
}
|
||||
|
||||
static const char fast_import_usage[] =
|
||||
|
||||
Reference in New Issue
Block a user