Skip to content
  • Derrick Stolee's avatar
    commit-graph: turn on commit-graph by default · 31b1de6a
    Derrick Stolee authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarDerrick Stolee <dstolee@microsoft.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    31b1de6a