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

Method Name

reference.go:325–329  ·  view source on GitHub ↗

Name returns the full name of v.

()

Source from the content-addressed store, hash-verified

323
324// Name returns the full name of v.
325func (v *Reference) Name() string {
326 ret := C.GoString(C.git_reference_name(v.ptr))
327 runtime.KeepAlive(v)
328 return ret
329}
330
331func (v *Reference) Type() ReferenceType {
332 ret := ReferenceType(C.git_reference_type(v.ptr))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected