189
gc_config_is_timestamp_never("gc.reflogexpireunreachable"))
190
cfg->prune_reflogs = 0;
191
192
- git_config_get_int("gc.aggressivewindow", &cfg->aggressive_window);
193
- git_config_get_int("gc.aggressivedepth", &cfg->aggressive_depth);
194
- git_config_get_int("gc.auto", &cfg->gc_auto_threshold);
195
- git_config_get_int("gc.autopacklimit", &cfg->gc_auto_pack_limit);
192
+ repo_config_get_int(the_repository, "gc.aggressivewindow", &cfg->aggressive_window);
193
+ repo_config_get_int(the_repository, "gc.aggressivedepth", &cfg->aggressive_depth);
194
+ repo_config_get_int(the_repository, "gc.auto", &cfg->gc_auto_threshold);
195
+ repo_config_get_int(the_repository, "gc.autopacklimit", &cfg->gc_auto_pack_limit);
196
git_config_get_bool("gc.autodetach", &cfg->detach_auto);
197
git_config_get_bool("gc.cruftpacks", &cfg->cruft_packs);
198
git_config_get_ulong("gc.maxcruftsize", &cfg->max_cruft_size);
332
};
333
int limit = 100;
334
335
- git_config_get_int("maintenance.reflog-expire.auto", &limit);
335
+ repo_config_get_int(the_repository, "maintenance.reflog-expire.auto", &limit);
336
if (!limit)
337
return 0;
338
if (limit < 0)
378
struct dirent *d;
379
DIR *dir = NULL;
380
381
- git_config_get_int("maintenance.worktree-prune.auto", &limit);
381
+ repo_config_get_int(the_repository, "maintenance.worktree-prune.auto", &limit);
382
if (limit <= 0) {
383
should_prune = limit < 0;
384
goto out;
423
int should_gc = 0, limit = 1;
424
DIR *dir = NULL;
425
426
- git_config_get_int("maintenance.rerere-gc.auto", &limit);
426
+ repo_config_get_int(the_repository, "maintenance.rerere-gc.auto", &limit);
427
if (limit <= 0) {
428
should_gc = limit < 0;
429
goto out;
1161
1162
data.num_not_in_graph = 0;
1163
data.limit = 100;
1164
- git_config_get_int("maintenance.commit-graph.auto",
1165
- &data.limit);
1164
+ repo_config_get_int(the_repository, "maintenance.commit-graph.auto",
1165
+ &data.limit);
1166
1167
if (!data.limit)
1168
return 0;
1300
{
1301
int count = 0;
1302
1303
- git_config_get_int("maintenance.loose-objects.auto",
1304
- &loose_object_auto_limit);
1303
+ repo_config_get_int(the_repository, "maintenance.loose-objects.auto",
1304
+ &loose_object_auto_limit);
1305
1306
if (!loose_object_auto_limit)
1307
return 0;
1415
if (!the_repository->settings.core_multi_pack_index)
1416
return 0;
1417
1418
- git_config_get_int("maintenance.incremental-repack.auto",
1419
- &incremental_repack_auto_limit);
1418
+ repo_config_get_int(the_repository, "maintenance.incremental-repack.auto",
1419
+ &incremental_repack_auto_limit);
1420
1421
if (!incremental_repack_auto_limit)
1422
return 0;