示例#1
0
func (repo *Repository) IsBare() bool {
	return C.git_repository_is_bare(repo.ptr) != 0
}
示例#2
0
func (repo *Repository) Bare() bool {
	return bool(C.git_repository_is_bare(repo.git_repository) == 1)
}
示例#3
0
文件: repository.go 项目: tmc/goit
// 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
}