]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
odb: write alternates via sources
authorPatrick Steinhardt <ps@pks.im>
Thu, 11 Dec 2025 09:30:17 +0000 (10:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Dec 2025 09:39:37 +0000 (18:39 +0900)
commit221a877d4785030e07d20977418609257fd606d8
tree565a1f55ac31e9cf6cee252bd8ca0fdaf69589b1
parentf7dbd9fb2ea9b14b4df0949411205f4b5d284b41
odb: write alternates via sources

Refactor writing of alternates so that the actual business logic is
structured around the object database source we want to write the
alternate to. Same as with the preceding commit, this will eventually
allow us to have different logic for writing alternates depending on the
backend used.

Note that after the refactoring we start to call
`odb_add_alternate_recursively()` unconditionally. This is fine though
as we know to skip adding sources that are tracked already.

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