From 50f26bd035816c2bb79582b834d59b49292502a9 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Mon, 2 Sep 2019 19:22:02 -0700 Subject: fetch: add fetch.writeCommitGraph config setting The commit-graph feature is now on by default, and is being written during 'git gc' by default. Typically, Git only writes a commit-graph when a 'git gc --auto' command passes the gc.auto setting to actualy do work. This means that a commit-graph will typically fall behind the commits that are being used every day. To stay updated with the latest commits, add a step to 'git fetch' to write a commit-graph after fetching new objects. The fetch.writeCommitGraph config setting enables writing a split commit-graph, so on average the cost of writing this file is very small. Occasionally, the commit-graph chain will collapse to a single level, and this could be slow for very large repos. For additional use, adjust the default to be true when feature.experimental is enabled. Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano --- repository.h | 1 + 1 file changed, 1 insertion(+) (limited to 'repository.h') diff --git a/repository.h b/repository.h index 4da275e73f..fe0b5f5dc6 100644 --- a/repository.h +++ b/repository.h @@ -30,6 +30,7 @@ struct repo_settings { int core_commit_graph; int gc_write_commit_graph; + int fetch_write_commit_graph; int index_version; enum untracked_cache_setting core_untracked_cache; -- cgit v1.2.3