]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-inmemory: implement `free()` callback
authorPatrick Steinhardt <ps@pks.im>
Fri, 10 Apr 2026 12:12:32 +0000 (14:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 May 2026 19:50:44 +0000 (04:50 +0900)
commit8caa2e090f1b83df7c0fc82ed7f7c8772f3ec5f4
tree94f291e744d3979016d30e17582eebec54017c90
parent822d403651aa6baff064095f98d8d8349d876eb8
odb/source-inmemory: implement `free()` callback

Implement the `free()` callback function for the "in-memory" source.

Note that this requires us to define `struct cached_object_entry` in
"odb/source-inmemory.h", as it is accessed in both "odb.c" and
"odb/source-inmemory.c" now. This will be fixed in subsequent commits
though.

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