diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-03-05 15:19:53 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-05 11:45:16 -0800 |
| commit | 6e76c3ab69f9b30530d50550a2feb7d8bda935db (patch) | |
| tree | cbd9a7639b440c128063475489576c39b993b9ec /odb.c | |
| parent | 6a38b13fbac73d1a1982f9211c5c3e64e1191696 (diff) | |
| download | git-6e76c3ab69f9b30530d50550a2feb7d8bda935db.tar.xz | |
odb/source: make `write_object()` 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1005,8 +1005,8 @@ int odb_write_object_ext(struct object_database *odb, struct object_id *compat_oid, unsigned flags) { - return odb_source_loose_write_object(odb->sources, buf, len, type, - oid, compat_oid, flags); + return odb_source_write_object(odb->sources, buf, len, type, + oid, compat_oid, flags); } int odb_write_object_stream(struct object_database *odb, |
