Add a new entry to the in-memory 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