Get the next reference's name
This function is provided for convenience in case only the names
are interesting as it avoids the allocation of the git_reference
object which git_reference_next()
needs.
pointer in which to store the string
0, GIT_ITEROVER if there are no more; or an error code