Repository.Path

This commit is contained in:
Vicent Marti 2013-03-06 17:16:32 +01:00
parent 3ca8077334
commit 60eac43943
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ func (v *Repository) Odb() (odb *Odb, err error) {
return
}
func (repo *Repository) Path() string {
return C.GoString(C.git_repository_path(repo.ptr))
}
func (v *Repository) TreeBuilder() (*TreeBuilder, error) {
bld := new(TreeBuilder)
if ret := C.git_treebuilder_create(&bld.ptr, nil); ret < 0 {