// Config returns a Config instance, representing the configuration of the // repository. func (r *Repository) Config() (*Config, error) { conf := new(Config) if C.git_repository_config(&conf.config, r.repository) != C.GIT_OK { return nil, lastErr() } return conf, nil }
func (repo *Repository) Config() (*Config, error) { config := new(Config) ecode := C.git_repository_config(&config.git_config, repo.git_repository) if ecode != git_SUCCESS { return nil, gitError() } return config, nil }
func (v *Repository) Config() (*Config, error) { config := new(Config) ret := C.git_repository_config(&config.ptr, v.ptr) if ret < 0 { return nil, LastError() } return config, nil }
func (v *Repository) Config() (*Config, error) { config := new(Config) runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_repository_config(&config.ptr, v.ptr) if ret < 0 { return nil, MakeGitError(ret) } runtime.SetFinalizer(config, (*Config).Free) return config, nil }