From: Junio C Hamano Date: Mon, 9 Sep 2019 19:26:36 +0000 (-0700) Subject: Merge branch 'ds/feature-macros' X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f4f8dfe127918241c1e3448436d32a89f13fa5a8 Merge branch 'ds/feature-macros' A mechanism to affect the default setting for a (related) group of configuration variables is introduced. * ds/feature-macros: repo-settings: create feature.experimental setting repo-settings: create feature.manyFiles setting repo-settings: parse core.untrackedCache commit-graph: turn on commit-graph by default t6501: use 'git gc' in quiet mode repo-settings: consolidate some config settings --- f4f8dfe127918241c1e3448436d32a89f13fa5a8 diff --cc builtin/gc.c index 305fb0f45a,4b8fbb9965..a22b6ff683 --- a/builtin/gc.c +++ b/builtin/gc.c @@@ -685,11 -683,11 +683,11 @@@ int cmd_gc(int argc, const char **argv clean_pack_garbage(); } - if (gc_write_commit_graph && - write_commit_graph_reachable(get_object_directory(), - !quiet && !daemonized ? COMMIT_GRAPH_WRITE_PROGRESS : 0, - NULL)) - return 1; + prepare_repo_settings(the_repository); + if (the_repository->settings.gc_write_commit_graph == 1) + write_commit_graph_reachable(get_object_directory(), - !quiet && !daemonized ? COMMIT_GRAPH_PROGRESS : 0, ++ !quiet && !daemonized ? COMMIT_GRAPH_WRITE_PROGRESS : 0, + NULL); if (auto_gc && too_many_loose_objects()) warning(_("There are too many unreachable loose objects; "