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

Method StateCleanup

repository.go:770–780  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768}
769
770func (r *Repository) StateCleanup() error {
771 runtime.LockOSThread()
772 defer runtime.UnlockOSThread()
773
774 cErr := C.git_repository_state_cleanup(r.ptr)
775 runtime.KeepAlive(r)
776 if cErr < 0 {
777 return MakeGitError(cErr)
778 }
779 return nil
780}
781
782func (r *Repository) AddGitIgnoreRules(rules string) error {
783 runtime.LockOSThread()

Callers 2

TestRevertFunction · 0.80
TestCherrypickFunction · 0.80

Calls 1

MakeGitErrorFunction · 0.85

Tested by 2

TestRevertFunction · 0.64
TestCherrypickFunction · 0.64