Repository.Path
This commit is contained in:
parent
3ca8077334
commit
60eac43943
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue