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

Method ClearInternalIgnoreRules

ignore.go:27–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (v *Repository) ClearInternalIgnoreRules() error {
28 runtime.LockOSThread()
29 defer runtime.UnlockOSThread()
30
31 ret := C.git_ignore_clear_internal_rules(v.ptr)
32 runtime.KeepAlive(v)
33 if ret < 0 {
34 return MakeGitError(ret)
35 }
36 return nil
37}
38
39func (v *Repository) IsPathIgnored(path string) (bool, error) {
40 var ignored C.int

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected