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
6
tag.c
6
tag.c
@@ -60,7 +60,7 @@ int gpg_verify_tag(const struct object_id *oid, const char *name_to_report,
|
||||
repo_find_unique_abbrev(the_repository, oid, DEFAULT_ABBREV),
|
||||
type_name(type));
|
||||
|
||||
buf = repo_read_object_file(the_repository, oid, &type, &size);
|
||||
buf = odb_read_object(the_repository->objects, oid, &type, &size);
|
||||
if (!buf)
|
||||
return error("%s: unable to read file.",
|
||||
name_to_report ?
|
||||
@@ -222,8 +222,8 @@ int parse_tag(struct tag *item)
|
||||
|
||||
if (item->object.parsed)
|
||||
return 0;
|
||||
data = repo_read_object_file(the_repository, &item->object.oid, &type,
|
||||
&size);
|
||||
data = odb_read_object(the_repository->objects, &item->object.oid,
|
||||
&type, &size);
|
||||
if (!data)
|
||||
return error("Could not read %s",
|
||||
oid_to_hex(&item->object.oid));
|
||||
|
||||
Reference in New Issue
Block a user