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
@@ -304,7 +304,7 @@ static void create_tag(const struct object_id *object, const char *object_ref,
|
||||
struct strbuf header = STRBUF_INIT;
|
||||
int should_edit;
|
||||
|
||||
type = oid_object_info(the_repository, object, NULL);
|
||||
type = odb_read_object_info(the_repository->objects, object, NULL);
|
||||
if (type <= OBJ_NONE)
|
||||
die(_("bad object type."));
|
||||
|
||||
@@ -401,7 +401,7 @@ static void create_reflog_msg(const struct object_id *oid, struct strbuf *sb)
|
||||
}
|
||||
|
||||
strbuf_addstr(sb, " (");
|
||||
type = oid_object_info(the_repository, oid, NULL);
|
||||
type = odb_read_object_info(the_repository->objects, oid, NULL);
|
||||
switch (type) {
|
||||
default:
|
||||
strbuf_addstr(sb, "object of unknown type");
|
||||
|
||||
Reference in New Issue
Block a user