Thanks to visit codestin.com Credit goes to libgit2.org
Check if a reflog exists for the specified reference.
the repository
the reference's name
0 when no reflog can be found, 1 when it exists; otherwise an error code.