Read the header of an object from the database, without reading its full contents.
Only the 'type' and 'len' fields of the git_rawobj structure are filled. The 'data' pointer will always be NULL.
The raw object pointed by 'out' doesn't need to be manually closed with git_rawobj_close().