Implement git_repository_set_config #735

Merged
bc-lee merged 3 commits from feature/732-git-repository-set-config into master 2021-02-03 21:33:04 -06:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit a23d33dee4 - Show all commits

View File

@ -166,6 +166,9 @@ func (v *Repository) Config() (*Config, error) {
}
func (v *Repository) SetConfig(c *Config) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
ret := C.git_repository_set_config(v.ptr, c.ptr)
lhchavez commented 2021-02-02 08:30:08 -06:00 (Migrated from github.com)
Review
// 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 {
```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)
if ret < 0 {