func (c *SubmoduleCollection) SetIgnore(submodule string, ignore SubmoduleIgnore) error { csubmodule := C.CString(submodule) defer C.free(unsafe.Pointer(csubmodule)) runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_submodule_set_ignore(c.repo.ptr, csubmodule, C.git_submodule_ignore_t(ignore)) if ret < 0 { return MakeGitError(ret) } return nil }
func (sub *Submodule) SetIgnore(ignore SubmoduleIgnore) SubmoduleIgnore { o := C.git_submodule_set_ignore(sub.ptr, C.git_submodule_ignore_t(ignore)) return SubmoduleIgnore(o) }