mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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
@@ -5503,9 +5503,8 @@ int sequencer_pick_revisions(struct repository *r,
|
||||
|
||||
if (!repo_get_oid(r, name, &oid)) {
|
||||
if (!lookup_commit_reference_gently(r, &oid, 1)) {
|
||||
enum object_type type = oid_object_info(r,
|
||||
&oid,
|
||||
NULL);
|
||||
enum object_type type = odb_read_object_info(r->objects,
|
||||
&oid, NULL);
|
||||
res = error(_("%s: can't cherry-pick a %s"),
|
||||
name, type_name(type));
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user