Re: [PATCH v2 on ds/commit-graph-fsck 0/6] Object store refactoring: commit graph
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Jul 10, 2018, 00:30 UTC
- Message-ID
- <3ced0e1e-1312-2f3b-bb67-fad3525e5500@gmail.com>
- In-Reply-To
- <xmqq4lh8avus.fsf@gitster-ct.c.googlers.com>
On 7/9/2018 6:27 PM, Junio C Hamano wrote:
Show 18 quoted lines
> Jonathan Tan <jonathantanmy@google.com> writes: > >> This is on ds/commit-graph-fsck. >> >> I saw that ds/commit-graph-fsck has been updated to the latest version >> (v7, including "gc.writeCommitGraph"), so I've rebased my changes on top >> of that branch. There were some mechanical changes needed during the >> rebase, so I'm sending the rebased patches out. >> >> I've also added a patch (patch 1) that removes some duplication of >> implementation that Junio talked about in [1]. >> >> [1] https://public-inbox.org/git/xmqqefgtmrgi.fsf@gitster-ct.c.googlers.com/ > While attempting to merge this topic to 'pu', I noticed that you and > Derrick are perhaps playing a game of whack-a-mole by you getting > rid of core_commit_graph global and making it a per in-core > repository instance, while Derrick adding core_multi_pack_index, > making it necessary for yet another round of similar clean-up?
We did have collisions with Jonathan's v1, but this v2 is on my latest commit-graph things so should not have conflicts.
The core_commit_graph variable appears to still be global (do we have config storage in the_repository yet?) so core_multi_pack_index is similar.
I do put the multi_pack_index pointer inside the_repository->objects, so the equivalent of this series will not be necessary for the MIDX series.
This series looks good to me, so please add "Reviewed-by: Derrick Stolee <dstolee@microsoft.com>"
I think we are set for another series on top of this one that lets the commit-graph feature handle arbitrary repositories (pass a 'struct repository *r' in all of the functions).
Thanks,
-Stolee