(name string, value int64)
| 258 | } |
| 259 | |
| 260 | func (c *Config) SetInt64(name string, value int64) (err error) { |
| 261 | cname := C.CString(name) |
| 262 | defer C.free(unsafe.Pointer(cname)) |
| 263 | |
| 264 | runtime.LockOSThread() |
| 265 | defer runtime.UnlockOSThread() |
| 266 | |
| 267 | ret := C.git_config_set_int64(c.ptr, cname, C.int64_t(value)) |
| 268 | runtime.KeepAlive(c) |
| 269 | if ret < 0 { |
| 270 | return MakeGitError(ret) |
| 271 | } |
| 272 | |
| 273 | return nil |
| 274 | } |
| 275 | |
| 276 | func (c *Config) SetBool(name string, value bool) (err error) { |
| 277 | cname := C.CString(name) |