mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
odb: rename has_object()
Rename `has_object()` to `odb_has_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
d4ff88aee3
commit
fcf8e3e111
@@ -509,7 +509,7 @@ static int got_oid(struct upload_pack_data *data,
|
||||
{
|
||||
if (get_oid_hex(hex, oid))
|
||||
die("git upload-pack: expected SHA1 object, got '%s'", hex);
|
||||
if (!has_object(the_repository, oid, 0))
|
||||
if (!odb_has_object(the_repository->objects, oid, 0))
|
||||
return -1;
|
||||
return do_got_oid(data, oid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user