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

Method Dst

refspec.go:63–73  ·  view source on GitHub ↗

Dst returns the refspec's destination specifier

()

Source from the content-addressed store, hash-verified

61
62// Dst returns the refspec's destination specifier
63func (s *Refspec) Dst() string {
64 var ret string
65 cstr := C.git_refspec_dst(s.ptr)
66
67 if cstr != nil {
68 ret = C.GoString(cstr)
69 }
70
71 runtime.KeepAlive(s)
72 return ret
73}
74
75// Force returns the refspec's force-update setting
76func (s *Refspec) Force() bool {

Callers 1

TestRefspecFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestRefspecFunction · 0.64