repo-settings.con commit t6501: use 'git gc' in quiet mode (b068d9a)
   1#include "cache.h"
   2#include "config.h"
   3#include "repository.h"
   4
   5void prepare_repo_settings(struct repository *r)
   6{
   7        int value;
   8
   9        if (r->settings.initialized)
  10                return;
  11
  12        /* Defaults */
  13        memset(&r->settings, -1, sizeof(r->settings));
  14
  15        if (!repo_config_get_bool(r, "core.commitgraph", &value))
  16                r->settings.core_commit_graph = value;
  17        if (!repo_config_get_bool(r, "gc.writecommitgraph", &value))
  18                r->settings.gc_write_commit_graph = value;
  19
  20        if (!repo_config_get_bool(r, "index.version", &value))
  21                r->settings.index_version = value;
  22
  23        if (!repo_config_get_bool(r, "pack.usesparse", &value))
  24                r->settings.pack_use_sparse = value;
  25}