mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-04 08:40:19 -05: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
@@ -795,9 +795,9 @@ enum get_oid_result get_tree_entry_follow_symlinks(struct repository *r,
|
||||
*/
|
||||
retval = DANGLING_SYMLINK;
|
||||
|
||||
contents = repo_read_object_file(r,
|
||||
¤t_tree_oid, &type,
|
||||
&link_len);
|
||||
contents = odb_read_object(r->objects,
|
||||
¤t_tree_oid, &type,
|
||||
&link_len);
|
||||
|
||||
if (!contents)
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user