odb: rename oid_object_info()
Rename `oid_object_info()` to `odb_read_object_info()` as well as their `_extended()` variant to match other functions related to the object database and our modern coding guidelines. Introduce compatibility wrappers 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
16cf749496
commit
e989dd96b8
@@ -245,8 +245,8 @@ static int remove_fetched_oids(struct repository *repo,
|
||||
struct object_id *new_oids;
|
||||
|
||||
for (i = 0; i < oid_nr; i++)
|
||||
if (oid_object_info_extended(repo, &old_oids[i], NULL,
|
||||
OBJECT_INFO_SKIP_FETCH_OBJECT)) {
|
||||
if (odb_read_object_info_extended(repo->objects, &old_oids[i], NULL,
|
||||
OBJECT_INFO_SKIP_FETCH_OBJECT)) {
|
||||
remaining[i] = 1;
|
||||
remaining_nr++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user