Perform a callback on each reference in the repository.
The callback
function will be called for each reference in the
repository, receiving the name of the reference and the payload
value
passed to this method. Returning a non-zero value from the callback
will terminate the iteration.
Additional data to pass to the callback
0 on success, GIT_EUSER on non-zero callback, or error code