mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
odb: rename repo_read_object_file()
Rename `repo_read_object_file()` to `odb_read_object()` to match other functions related to the object database and our modern coding guidelines. Introduce a compatibility wrapper so that any in-flight topics will continue to compile. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
e989dd96b8
commit
d4ff88aee3
2
config.c
2
config.c
@@ -1942,7 +1942,7 @@ int git_config_from_blob_oid(config_fn_t fn,
|
||||
unsigned long size;
|
||||
int ret;
|
||||
|
||||
buf = repo_read_object_file(repo, oid, &type, &size);
|
||||
buf = odb_read_object(repo->objects, oid, &type, &size);
|
||||
if (!buf)
|
||||
return error(_("unable to load config blob object '%s'"), name);
|
||||
if (type != OBJ_BLOB) {
|
||||
|
||||
Reference in New Issue
Block a user