()
| 390 | } |
| 391 | |
| 392 | func (v *Repository) IsEmpty() (bool, error) { |
| 393 | runtime.LockOSThread() |
| 394 | defer runtime.UnlockOSThread() |
| 395 | |
| 396 | ret := C.git_repository_is_empty(v.ptr) |
| 397 | runtime.KeepAlive(v) |
| 398 | if ret < 0 { |
| 399 | return false, MakeGitError(ret) |
| 400 | } |
| 401 | |
| 402 | return ret != 0, nil |
| 403 | } |
| 404 | |
| 405 | func (v *Repository) IsShallow() (bool, error) { |
| 406 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected