(rules string)
| 10 | ) |
| 11 | |
| 12 | func (v *Repository) AddIgnoreRule(rules string) error { |
| 13 | crules := C.CString(rules) |
| 14 | defer C.free(unsafe.Pointer(crules)) |
| 15 | |
| 16 | runtime.LockOSThread() |
| 17 | defer runtime.UnlockOSThread() |
| 18 | |
| 19 | ret := C.git_ignore_add_rule(v.ptr, crules) |
| 20 | runtime.KeepAlive(v) |
| 21 | if ret < 0 { |
| 22 | return MakeGitError(ret) |
| 23 | } |
| 24 | return nil |
| 25 | } |
| 26 | |
| 27 | func (v *Repository) ClearInternalIgnoreRules() error { |
| 28 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected