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

Method IsShallow

repository.go:405–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403}
404
405func (v *Repository) IsShallow() (bool, error) {
406 runtime.LockOSThread()
407 defer runtime.UnlockOSThread()
408
409 ret := C.git_repository_is_shallow(v.ptr)
410 runtime.KeepAlive(v)
411 if ret < 0 {
412 return false, MakeGitError(ret)
413 }
414 return ret != 0, nil
415}
416
417func (v *Repository) Walk() (*RevWalk, error) {
418

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected