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

Method DefaultSignature

signature.go:63–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (repo *Repository) DefaultSignature() (*Signature, error) {
64 var out *C.git_signature
65
66 runtime.LockOSThread()
67 defer runtime.UnlockOSThread()
68
69 cErr := C.git_signature_default(&out, repo.ptr)
70 runtime.KeepAlive(repo)
71 if cErr < 0 {
72 return nil, MakeGitError(cErr)
73 }
74
75 defer C.git_signature_free(out)
76
77 return newSignatureFromC(out), nil
78}

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
newSignatureFromCFunction · 0.85

Tested by

no test coverage detected