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

Method Shorthand

reference.go:318–322  ·  view source on GitHub ↗

Shorthand returns a "human-readable" short reference name.

()

Source from the content-addressed store, hash-verified

316
317// Shorthand returns a "human-readable" short reference name.
318func (v *Reference) Shorthand() string {
319 ret := C.GoString(C.git_reference_shorthand(v.ptr))
320 runtime.KeepAlive(v)
321 return ret
322}
323
324// Name returns the full name of v.
325func (v *Reference) Name() string {

Callers 2

TestUtilFunction · 0.80
TestCreateTagLightweightFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestUtilFunction · 0.64
TestCreateTagLightweightFunction · 0.64