get retrieves the pointer from the given *git_remote.
(ptr *C.git_remote)
| 245 | |
| 246 | // get retrieves the pointer from the given *git_remote. |
| 247 | func (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 | |
| 259 | type CertificateKind uint |
| 260 |
no outgoing calls
no test coverage detected