()
| 378 | } |
| 379 | |
| 380 | func (v *Repository) IsHeadUnborn() (bool, error) { |
| 381 | runtime.LockOSThread() |
| 382 | defer runtime.UnlockOSThread() |
| 383 | |
| 384 | ret := C.git_repository_head_unborn(v.ptr) |
| 385 | runtime.KeepAlive(v) |
| 386 | if ret < 0 { |
| 387 | return false, MakeGitError(ret) |
| 388 | } |
| 389 | return ret != 0, nil |
| 390 | } |
| 391 | |
| 392 | func (v *Repository) IsEmpty() (bool, error) { |
| 393 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected