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

Method ClearGitIgnoreRules

repository.go:796–806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

794}
795
796func (r *Repository) ClearGitIgnoreRules() error {
797 runtime.LockOSThread()
798 defer runtime.UnlockOSThread()
799
800 ret := C.git_ignore_clear_internal_rules(r.ptr)
801 runtime.KeepAlive(r)
802 if ret < 0 {
803 return MakeGitError(ret)
804 }
805 return nil
806}
807
808// Message retrieves git's prepared message.
809// Operations such as git revert/cherry-pick/merge with the -n option stop just

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected