MCPcopy Index your code
hub / github.com/driusan/dgit / UpdateRefSpec

Function UpdateRefSpec

git/updateref.go:68–99  ·  view source on GitHub ↗

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 from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

CloneFunction · 0.85
TagCommitFunction · 0.85
UpdateRefFunction · 0.85

Calls 6

FileTypeAlias · 0.85
updateReflogFunction · 0.85
CommitIDMethod · 0.65
StringMethod · 0.65
CloseMethod · 0.65
CreateMethod · 0.45

Tested by

no test coverage detected