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

Method Src

refspec.go:50–60  ·  view source on GitHub ↗

Src returns the refspec's source specifier

()

Source from the content-addressed store, hash-verified

48
49// Src returns the refspec's source specifier
50func (s *Refspec) Src() string {
51 var ret string
52 cstr := C.git_refspec_src(s.ptr)
53
54 if cstr != nil {
55 ret = C.GoString(cstr)
56 }
57
58 runtime.KeepAlive(s)
59 return ret
60}
61
62// Dst returns the refspec's destination specifier
63func (s *Refspec) Dst() string {

Callers 1

TestRefspecFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestRefspecFunction · 0.64