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
reference to read the reflog for
0 or an error code