]> git.ipfire.org Git - thirdparty/git.git/commit - repo-settings.c
commit-graph: turn on commit-graph by default
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 13 Aug 2019 18:37:45 +0000 (11:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2019 20:33:55 +0000 (13:33 -0700)
commit31b1de6a09bad59cc0d88419925486afc7add277
tree7bacab2da14ac9377910ad913ab4bcc02b6fa924
parentb068d9a250246896cc56b9450049b2ed6451ccbb
commit-graph: turn on commit-graph by default

The commit-graph feature has seen a lot of activity in the past
year or so since it was introduced. The feature is a critical
performance enhancement for medium- to large-sized repos, and
does not significantly hurt small repos.

Change the defaults for core.commitGraph and gc.writeCommitGraph
to true so users benefit from this feature by default.

There are several places in the test suite where the environment
variable GIT_TEST_COMMIT_GRAPH is disabled to avoid reading a
commit-graph, if it exists. The config option overrides the
environment, so swap these. Some GIT_TEST_COMMIT_GRAPH assignments
remain, and those are to avoid writing a commit-graph when a new
commit is created.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/core.txt
Documentation/config/gc.txt
repo-settings.c
t/t0410-partial-clone.sh
t/t5307-pack-missing-commit.sh
t/t5324-split-commit-graph.sh
t/t6011-rev-list-with-bad-commit.sh