Get a list of refs at the remote
The remote (or more exactly its transport) must be connected. The memory belongs to the remote.
If you a return a non-zero value from the callback, this will stop looping over the refs.
additional data to pass to the callback
0 on success, GIT_EUSER on non-zero callback, or error code