Exemple #1
0
func (repo *Repository) IsBare() bool {
	return C.git_repository_is_bare(repo.ptr) != 0
}
Exemple #2
0
func (repo *Repository) Bare() bool {
	return bool(C.git_repository_is_bare(repo.git_repository) == 1)
}
Exemple #3
0
// Returns whether or not a repository is bare.
func (r Repository) IsBare() bool {
	bare := int(C.git_repository_is_bare(r.repo))
	return bare == 1
}