object API docs: move check_object_signature() docs to cache.h
Move the API documentation for check_object_signature() to cache.h, where its prototype is declared. This is in preparation for adding a companion function. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
73182b2d84
commit
cdcaaec9a6
@ -1066,12 +1066,6 @@ int format_object_header(char *str, size_t size, enum object_type type,
|
||||
return format_object_header_literally(str, size, name, objsize);
|
||||
}
|
||||
|
||||
/*
|
||||
* With in-core object data in "buf", rehash it to make sure the
|
||||
* object name actually matches "oid" to detect object corruption.
|
||||
* With "buf" == NULL, try reading the object named with "oid" using
|
||||
* the streaming interface and rehash it to do the same.
|
||||
*/
|
||||
int check_object_signature(struct repository *r, const struct object_id *oid,
|
||||
void *buf, unsigned long size, const char *type,
|
||||
struct object_id *real_oidp)
|
||||
|
Reference in New Issue
Block a user