]> git.99rst.org Git - git.git/commit
odb: return newly created in-memory sources
authorPatrick Steinhardt <redacted>
Mon, 11 Aug 2025 13:46:44 +0000 (15:46 +0200)
committerJunio C Hamano <redacted>
Mon, 11 Aug 2025 16:22:21 +0000 (09:22 -0700)
commita59d44ff3f0f308f9577b05c858c063d2466b061
tree092f3869cb42a455a5c59b371e9140415a5088d1
parent25c532f6e0797ef501ce43835fb4af4bd9c33de5
odb: return newly created in-memory sources

Callers have no trivial way to obtain the newly created object database
source when adding it to the in-memory list of alternates. While not yet
needed anywhere, a subsequent commit will want to obtain that pointer.

Refactor the function to return the source to make it easily accessible.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
odb.c
odb.h
git clone https://git.99rst.org/PROJECT