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
attr.c
2
attr.c
@@ -779,7 +779,7 @@ static struct attr_stack *read_attr_from_blob(struct index_state *istate,
|
||||
if (get_tree_entry(istate->repo, tree_oid, path, &oid, &mode))
|
||||
return NULL;
|
||||
|
||||
buf = repo_read_object_file(istate->repo, &oid, &type, &sz);
|
||||
buf = odb_read_object(istate->repo->objects, &oid, &type, &sz);
|
||||
if (!buf || type != OBJ_BLOB) {
|
||||
free(buf);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user