aboutsummaryrefslogtreecommitdiff
path: root/odb.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-05 15:19:54 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-05 11:45:16 -0800
commitfc7fb0ef3575091bbc00d6bf8345c2da0c386052 (patch)
tree1420b8f3f2519ca4ad977d367bd84c6bf1fb6f89 /odb.c
parent6e76c3ab69f9b30530d50550a2feb7d8bda935db (diff)
downloadgit-fc7fb0ef3575091bbc00d6bf8345c2da0c386052.tar.xz
odb/source: make `write_object_stream()` function pluggable
Introduce a new callback function in `struct odb_source` to make the function pluggable. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.c')
-rw-r--r--odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb.c b/odb.c
index 5eb60063dc..f439de9db2 100644
--- a/odb.c
+++ b/odb.c
@@ -1013,7 +1013,7 @@ int odb_write_object_stream(struct object_database *odb,
struct odb_write_stream *stream, size_t len,
struct object_id *oid)
{
- return odb_source_loose_write_stream(odb->sources, stream, len, oid);
+ return odb_source_write_object_stream(odb->sources, stream, len, oid);
}
struct object_database *odb_new(struct repository *repo,