Implement git_repository_set_config #735
|
@ -166,6 +166,9 @@ func (v *Repository) Config() (*Config, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Repository) SetConfig(c *Config) error {
|
func (v *Repository) SetConfig(c *Config) error {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
ret := C.git_repository_set_config(v.ptr, c.ptr)
|
ret := C.git_repository_set_config(v.ptr, c.ptr)
|
||||||
![]()
lhchavez
commented
Review
```suggestion
// SetConfig sets the configuration file for this repository.
//
// This configuration file will be used for all configuration queries involving
// this repository.
func (v *Repository) SetConfig(c *Config) error {
```
|
|||||||
runtime.KeepAlive(v)
|
runtime.KeepAlive(v)
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
|
|
Loading…
Reference in New Issue