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

Function NewCredentialDefault

credentials.go:287–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285}
286
287func NewCredentialDefault() (*Credential, error) {
288 runtime.LockOSThread()
289 defer runtime.UnlockOSThread()
290
291 cred := newCredential()
292 ret := C.git_credential_default_new(&cred.ptr)
293 if ret != 0 {
294 cred.Free()
295 return nil, MakeGitError(ret)
296 }
297 return cred, nil
298}

Callers 1

NewCredDefaultFunction · 0.85

Calls 3

newCredentialFunction · 0.85
MakeGitErrorFunction · 0.85
FreeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…