aboutsummaryrefslogtreecommitdiffstats
path: root/odb.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-11-03 08:42:07 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-03 12:18:47 -0800
commitbfb1b2b4ac5cfa99f7d2503b404d282714d84bdf (patch)
tree554946260888f95fb659c4c771871eecacc93e9c /odb.c
parentf2bd88a308a2754e727cb462e03102307cdfe004 (diff)
downloadgit-bfb1b2b4ac5cfa99f7d2503b404d282714d84bdf.tar.gz
object-file: rename `write_object_file()`
Rename `write_object_file()` to `odb_source_loose_write_object()` so that it becomes clear that this is tied to a specific loose object source. This matches our modern naming schema for functions. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb.c b/odb.c
index 17734bdaff..da44f1d63b 100644
--- a/odb.c
+++ b/odb.c
@@ -1021,7 +1021,8 @@ int odb_write_object_ext(struct object_database *odb,
struct object_id *compat_oid,
unsigned flags)
{
- return write_object_file(odb->sources, buf, len, type, oid, compat_oid, flags);
+ return odb_source_loose_write_object(odb->sources, buf, len, type,
+ oid, compat_oid, flags);
}
struct object_database *odb_new(struct repository *repo)