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

Method get

remote.go:247–257  ·  view source on GitHub ↗

get retrieves the pointer from the given *git_remote.

(ptr *C.git_remote)

Source from the content-addressed store, hash-verified

245
246// get retrieves the pointer from the given *git_remote.
247func (v *remotePointerList) get(ptr *C.git_remote) (*Remote, bool) {
248 v.RLock()
249 defer v.RUnlock()
250
251 r, ok := v.pointers[ptr]
252 if !ok {
253 return nil, false
254 }
255
256 return r, true
257}
258
259type CertificateKind uint
260

Callers 1

smartTransportCallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected