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

Method SymbolicTarget

reference.go:258–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258func (v *Reference) SymbolicTarget() string {
259 var ret string
260 cstr := C.git_reference_symbolic_target(v.ptr)
261
262 if cstr != nil {
263 return C.GoString(cstr)
264 }
265
266 runtime.KeepAlive(v)
267 return ret
268}
269
270func (v *Reference) Delete() error {
271 runtime.LockOSThread()

Callers 1

TestRefModificationFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestRefModificationFunction · 0.64