]> Kevux Git Server - rit/commit
commit-graph: pass graphs that are to be merged as parameter
authorPatrick Steinhardt <ps@pks.im>
Thu, 4 Sep 2025 12:49:59 +0000 (14:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Sep 2025 23:16:22 +0000 (16:16 -0700)
commit62490b6d85882e6a0ba434ab436640e31352ffee
treeed22365fe26780ff6be33710c2c55851a24edbc1
parent88bc3500e5be888c13757d12c4a5cb16e39ec673
commit-graph: pass graphs that are to be merged as parameter

When determining whether or not we want to merge a commit graph chain we
retrieve the graph that is to be merged via the context's repository.
With an upcoming change though it will become a bit more complex to
figure out the commit graph, which would lead to code duplication.

Prepare for this change by passing the graph that is to be merged as a
parameter.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c