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

Method IsEmpty

repository.go:392–403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390}
391
392func (v *Repository) IsEmpty() (bool, error) {
393 runtime.LockOSThread()
394 defer runtime.UnlockOSThread()
395
396 ret := C.git_repository_is_empty(v.ptr)
397 runtime.KeepAlive(v)
398 if ret < 0 {
399 return false, MakeGitError(ret)
400 }
401
402 return ret != 0, nil
403}
404
405func (v *Repository) IsShallow() (bool, error) {
406 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected