diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-10-25 18:07:33 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-10-25 18:07:33 +0200 |
| commit | a2fd47aad228914235b0eecf8984099aea7c1b38 (patch) | |
| tree | 44dee69a6022e7e9f5bc91bef9949f9cb20b75f7 /config.go | |
| parent | 41008af54cfc2af3a5ea56dff169c95d2b50dda6 (diff) | |
| parent | ea54434f90c129fcdadb8c20514d7958d58ff9b5 (diff) | |
Merge pull request #128 from calavera/remote_git_config_refresh_call
Remove Config#Refresh
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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)) } - |
