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

Function UpdateRef

git/updateref.go:104–172  ·  view source on GitHub ↗

Handles "git update-ref" command line. ref is what's passed on the command-line it can be either a symbolic ref, or a refspec. We just use a string, because Go doesn't support sum types.

(c *Client, opts UpdateRefOptions, ref string, cmt CommitID, reason string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

UpdateRefFunction · 0.92
RevertFunction · 0.70
ResetModeFunction · 0.70
FetchFunction · 0.70
MergeFunction · 0.70
CheckoutCommitFunction · 0.70
CommitFunction · 0.70

Calls 13

FileTypeAlias · 0.85
UpdateRefSpecFunction · 0.85
RefSpecTypeAlias · 0.85
SymbolicRefGetFunction · 0.85
updateReflogFunction · 0.85
RemoveMethod · 0.80
HasPrefixMethod · 0.80
SymbolicRefTypeAlias · 0.70
CommitIDMethod · 0.65
CloseMethod · 0.65
FileMethod · 0.45
ExistsMethod · 0.45

Tested by

no test coverage detected