Safely updates ref to point to cmt under the client c, logging reason in the reflog. If opts.OldValue is set, it will return an error if the current value is not OldValue.
(c *Client, opts UpdateRefOptions, ref RefSpec, cmt CommitID, reason string)
source not stored for this graph (policy: none)