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

Method Walk

repository.go:417–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415}
416
417func (v *Repository) Walk() (*RevWalk, error) {
418
419 var walkPtr *C.git_revwalk
420
421 runtime.LockOSThread()
422 defer runtime.UnlockOSThread()
423
424 ecode := C.git_revwalk_new(&walkPtr, v.ptr)
425 if ecode < 0 {
426 return nil, MakeGitError(ecode)
427 }
428
429 return revWalkFromC(v, walkPtr), nil
430}
431
432func (v *Repository) CreateCommit(
433 refname string, author, committer *Signature,

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
revWalkFromCFunction · 0.85

Tested by

no test coverage detected