Remove Config#Refresh #128
13
config.go
13
config.go
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d676af43da6603f1b31fb6d2d3eb02793b260ad0
|
||||
Subproject commit d09458f3e9f24afa0689ce90b7d4191872372634
|
Loading…
Reference in New Issue