]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
odb: adopt logic to close object databases
authorPatrick Steinhardt <ps@pks.im>
Wed, 19 Nov 2025 07:50:51 +0000 (08:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Nov 2025 01:41:03 +0000 (17:41 -0800)
commit9aaba579932781c74f67d6cecddaad59f0daaaef
tree4f6d5291108a35b571e1315c31750a9386c0d8d9
parent7c188a9e45405ff911b81a5dd9029f4e91fb338e
odb: adopt logic to close object databases

The logic to close an object database is currently contained in the
packfile subsystem. That choice is somewhat relatable, as most of the
logic really is to close resources associated with the packfile store
itself. But we also end up handling object sources and commit graphs,
which certainly is not related to packfiles.

Move the function into the object database subsystem and rename it to
`odb_close()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/gc.c
builtin/repack.c
midx-write.c
odb.c
odb.h
packfile.c
packfile.h
run-command.c
scalar.c