Create a new in-memory repository object with the given type.
The object's attributes can be filled in using the corresponding setter methods.
The object will be written back to given git_repository when the git_object_write() function is called; objects cannot be written to disk until all their main attributes have been properly filled.
Objects are instantiated with no SHA1 id; their id will be automatically generated when writing to the repository.
pointer to the new object
Repository where the object belongs
Type of the object to be created
the new object