()
| 663 | } |
| 664 | |
| 665 | func (v *Repository) Odb() (odb *Odb, err error) { |
| 666 | odb = new(Odb) |
| 667 | |
| 668 | runtime.LockOSThread() |
| 669 | defer runtime.UnlockOSThread() |
| 670 | |
| 671 | ret := C.git_repository_odb(&odb.ptr, v.ptr) |
| 672 | runtime.KeepAlive(v) |
| 673 | if ret < 0 { |
| 674 | return nil, MakeGitError(ret) |
| 675 | } |
| 676 | |
| 677 | runtime.SetFinalizer(odb, (*Odb).Free) |
| 678 | return odb, nil |
| 679 | } |
| 680 | |
| 681 | func (repo *Repository) Path() string { |
| 682 | s := C.GoString(C.git_repository_path(repo.ptr)) |