()
| 61 | } |
| 62 | |
| 63 | func (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 | } |
nothing calls this directly
no test coverage detected