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
fsck.c
2
fsck.c
@@ -1293,7 +1293,7 @@ static int fsck_blobs(struct oidset *blobs_found, struct oidset *blobs_done,
|
||||
if (oidset_contains(blobs_done, oid))
|
||||
continue;
|
||||
|
||||
buf = repo_read_object_file(the_repository, oid, &type, &size);
|
||||
buf = odb_read_object(the_repository->objects, oid, &type, &size);
|
||||
if (!buf) {
|
||||
if (is_promisor_object(the_repository, oid))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user