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

Method IsHeadUnborn

repository.go:380–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378}
379
380func (v *Repository) IsHeadUnborn() (bool, error) {
381 runtime.LockOSThread()
382 defer runtime.UnlockOSThread()
383
384 ret := C.git_repository_head_unborn(v.ptr)
385 runtime.KeepAlive(v)
386 if ret < 0 {
387 return false, MakeGitError(ret)
388 }
389 return ret != 0, nil
390}
391
392func (v *Repository) IsEmpty() (bool, error) {
393 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected