Wrap git_repository_is_bare

This commit is contained in:
Axel Wagner 2013-04-26 00:10:28 +02:00
parent c7286515b8
commit a6429763a7
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)) 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 { func (repo *Repository) Workdir() string {
return C.GoString(C.git_repository_workdir(repo.ptr)) return C.GoString(C.git_repository_workdir(repo.ptr))
} }