Read the header of an object from the database, without
reading its full contents.
The header includes the length and the type of an object.
Note that most backends do not support reading only the header
of an object, so the whole object will be read and then the
header will be returned.
@param len_out pointer where to store the length
@param type_out pointer where to store the type
@param db database to search for the object in.
@param id identity of the object to read.
@return
- 0 if the object was read;
- git_error_code.GIT_ENOTFOUND if the object is not in the database.
Read the header of an object from the database, without reading its full contents.
The header includes the length and the type of an object.
Note that most backends do not support reading only the header of an object, so the whole object will be read and then the header will be returned.
@param len_out pointer where to store the length @param type_out pointer where to store the type @param db database to search for the object in. @param id identity of the object to read. @return - 0 if the object was read; - git_error_code.GIT_ENOTFOUND if the object is not in the database.