MCPcopy Create free account
hub / github.com/libgit2/git2go / IsBare

Method IsBare

repository.go:687–691  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685}
686
687func (repo *Repository) IsBare() bool {
688 ret := C.git_repository_is_bare(repo.ptr) != 0
689 runtime.KeepAlive(repo)
690 return ret
691}
692
693func (repo *Repository) Workdir() string {
694 s := C.GoString(C.git_repository_workdir(repo.ptr))

Callers 1

cleanupTestRepoFunction · 0.80

Calls

no outgoing calls

Tested by 1

cleanupTestRepoFunction · 0.64