Read the reflog for the given reference
If there is no reflog file for the given reference yet, an empty reflog object will be returned.
The reflog must be freed manually by using git_reflog_free().
pointer to reflog
the repostiory
reference to look up
0 or an error code