Remove Config#Refresh #128

Merged
calavera merged 2 commits from remote_git_config_refresh_call into master 2014-10-25 11:07:33 -05:00
2 changed files with 1 additions and 14 deletions

View File

@ -342,18 +342,6 @@ func OpenOndisk(parent *Config, path string) (*Config, error) {
return config, nil
}
// Refresh refreshes the configuration to reflect any changes made externally e.g. on disk
func (c *Config) Refresh() error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
if ret := C.git_config_refresh(c.ptr); ret < 0 {
return MakeGitError(ret)
}
return nil
}
type ConfigIterator struct {
ptr *C.git_config_iterator
}
@ -374,4 +362,3 @@ func (iter *ConfigIterator) Free() {
runtime.SetFinalizer(iter, nil)
C.free(unsafe.Pointer(iter.ptr))
}

2
vendor/libgit2 vendored

@ -1 +1 @@
Subproject commit d676af43da6603f1b31fb6d2d3eb02793b260ad0
Subproject commit d09458f3e9f24afa0689ce90b7d4191872372634