[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tip: git commit-graph
From: |
Gerd Möllmann |
Subject: |
Re: Tip: git commit-graph |
Date: |
Wed, 11 Oct 2023 20:30:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Yuri Khan <yuri.v.khan@gmail.com> writes:
>> In the recently released Git version 2.24.0, the commit-graph is enabled by
>> default!
>
> but what it actually seems to mean is that 2.24 changes the defaults
> for two configuration variables to ‘true’:
>
> * ‘core.commitGraph’ which instructs Git to *use* the file if present; and
> * ‘gc.writeCommitGraph’ which instructs it to *create or update* the
> file on every invocation of ‘git gc’.
In addition to that I've added
git config --global fetch.writeCommitGraph true
I think that's also from the article, not sure anymore. And the write
I've done with
git commit-graph write --reachable --changed-paths
because somewhere else it was suggested that that helps with the log of
single files.
> So this answers my question: Users who have not run ‘git gc’ since
> 2019, or ‘git commit-graph write’ ever, will not already have a
> serialized commit graph.
:-)