Add a new entry to the reflog.
msg is optional and can be NULL.
msg
an existing reflog object
the OID the reference is now pointing to
the signature of the committer
the reflog message
0 or an error code