Пример #1
0
func (repo *Repository) Empty() bool {
	return bool(C.git_repository_is_empty(repo.git_repository) == 1)
}
Пример #2
0
// Returns whether or not a repository is empty.
func (r Repository) IsEmpty() bool {
	empty := int(C.git_repository_is_empty(r.repo))
	return empty == 1
}