Get the id (SHA1) of a repository object
In-memory objects created by git_object_new() do not have a SHA1 ID until they are written on a repository.
the repository object
the SHA1 id