Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The commit-graph feature is starting to stabilize. Based on what is in master right now, we have:
Git 2.18:
Ability to write commit-graph (requires user interaction).
Commit parsing is faster when commit-graph exists.
Must have core.commitGraph true to use.
Git 2.19:
Ability to write commit-graph on GC with gc.writeCommitGraph.
Generation numbers written in commit-graph
A few reachability algorithms make use of generation numbers.
(queued for) master:
The test suite passes with GIT_TEST_COMMIT_GRAPH=1
'git commit-graph write' has progress indicators.
The commit-graph is automatically disabled when grafts or replace-objects exist.
There are some other things coming that are in review (like 'git log --graph' speedups), but it is probably time to consider enabling the commit-graph by default. This series does that.
For timing, I'm happy to leave this queued for a merge after the Git 2.20 release. There are enough things in master to justify not enabling this by default until that goes out and more people use it.
PATCH 3/3 is rather simple, and is the obvious thing to do to achieve enabling these config values by default.
PATCH 1/3 is a required change to make the test suite work with this change. This change isn't needed with GIT_TEST_COMMIT_GRAPH=1 because the commit-graph is up-to-date for these 'git gc' calls, so no progress is output.
PATCH 2/3 is also a necessary evil, since we already had to disable GIT_TEST_COMMIT_GRAPH for some tests, we now also need to turn off core.commitGraph.
Thanks,
-Stolee