Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Commit

Permalink
Repository.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Mar 6, 2013
1 parent 3ca8077 commit 60eac43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 60eac43

Please sign in to comment.