MCPcopy Create free account
hub / github.com/libgit2/git2go / newReferenceFromC

Function newReferenceFromC

reference.go:157–161  ·  view source on GitHub ↗
(ptr *C.git_reference, repo *Repository)

Source from the content-addressed store, hash-verified

155}
156
157func newReferenceFromC(ptr *C.git_reference, repo *Repository) *Reference {
158 ref := &Reference{ptr: ptr, repo: repo}
159 runtime.SetFinalizer(ref, (*Reference).Free)
160 return ref
161}
162
163func (v *Reference) SetSymbolicTarget(target string, msg string) (*Reference, error) {
164 var ptr *C.git_reference

Callers 15

RevparseExtMethod · 0.85
HeadMethod · 0.85
NextMethod · 0.85
CreateBranchMethod · 0.85
MoveMethod · 0.85
LookupBranchMethod · 0.85
UpstreamMethod · 0.85
LookupMethod · 0.85
CreateMethod · 0.85
CreateSymbolicMethod · 0.85
DwimMethod · 0.85
SetSymbolicTargetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…