Merge pull request #14 from Merovius/isbare

Wrap git_repository_is_bare
This commit is contained in:
Vicent Martí 2013-04-25 17:39:57 -07:00
commit 9822cc944e
1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ func (repo *Repository) Path() string {
return C.GoString(C.git_repository_path(repo.ptr))
}
func (repo *Repository) IsBare() (bool) {
return C.git_repository_is_bare(repo.ptr) != 0
}
func (repo *Repository) Workdir() string {
return C.GoString(C.git_repository_workdir(repo.ptr))
}