diff options
| author | Derrick Stolee <dstolee@microsoft.com> | 2018-04-10 08:56:03 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-04-11 10:43:01 +0900 |
| commit | 1b70dfd5946f76e40516f2229afbf249f185bc7a (patch) | |
| tree | 0c265a5e25bbcb5d3e35299c5c06c3570d753d61 /config.c | |
| parent | commit-graph: implement git commit-graph read (diff) | |
| download | git-1b70dfd5946f76e40516f2229afbf249f185bc7a.tar.gz git-1b70dfd5946f76e40516f2229afbf249f185bc7a.zip | |
commit-graph: add core.commitGraph setting
The commit graph feature is controlled by the new core.commitGraph config
setting. This defaults to 0, so the feature is opt-in.
The intention of core.commitGraph is that a user can always stop checking
for or parsing commit graph files if core.commitGraph=0.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1226,6 +1226,11 @@ static int git_default_core_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "core.commitgraph")) { + core_commit_graph = git_config_bool(var, value); + return 0; + } + if (!strcmp(var, "core.sparsecheckout")) { core_apply_sparse_checkout = git_config_bool(var, value); return 0; |
