func (cfg *Config) SetInt32(name string, value int32) error { cname := C.CString(name) defer C.free(unsafe.Pointer(cname)) cvalue := C.int32_t(value) ecode := C.git_config_set_int32(cfg.git_config, cname, cvalue) if ecode != git_SUCCESS { return gitError() } return nil }
func (c *Config) SetInt32(name string, value int32) (err error) { cname := C.CString(name) defer C.free(unsafe.Pointer(cname)) ret := C.git_config_set_int32(c.ptr, cname, C.int32_t(value)) if ret < 0 { return MakeGitError(ret) } return nil }