Skip to content

Commit 9822cc9

Browse files
author
Vicent Martí
committed
Merge pull request libgit2#14 from Merovius/isbare
Wrap git_repository_is_bare
2 parents c728651 + a642976 commit 9822cc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

repository.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ func (repo *Repository) Path() string {
217217
return C.GoString(C.git_repository_path(repo.ptr))
218218
}
219219

220+
func (repo *Repository) IsBare() (bool) {
221+
return C.git_repository_is_bare(repo.ptr) != 0
222+
}
223+
220224
func (repo *Repository) Workdir() string {
221225
return C.GoString(C.git_repository_workdir(repo.ptr))
222226
}

0 commit comments

Comments
 (0)