()
| 365 | } |
| 366 | |
| 367 | func (v *Repository) IsHeadDetached() (bool, error) { |
| 368 | runtime.LockOSThread() |
| 369 | defer runtime.UnlockOSThread() |
| 370 | |
| 371 | ret := C.git_repository_head_detached(v.ptr) |
| 372 | runtime.KeepAlive(v) |
| 373 | if ret < 0 { |
| 374 | return false, MakeGitError(ret) |
| 375 | } |
| 376 | |
| 377 | return ret != 0, nil |
| 378 | } |
| 379 | |
| 380 | func (v *Repository) IsHeadUnborn() (bool, error) { |
| 381 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected