Ensure there is a reflog for a particular reference.
Make sure that successive updates to the reference will append to its log.
the repository
the reference's name
0 or an error code.