diff options
| author | David Calavera <[email protected]> | 2014-10-24 17:22:46 -0700 |
|---|---|---|
| committer | David Calavera <[email protected]> | 2014-10-24 17:22:46 -0700 |
| commit | 5c72fe54b89c9f400a8d7b87c0d1a689b89b252e (patch) | |
| tree | 8e44f2ef0c35a59d467b1cdb2a19a130a2d9ba2e | |
| parent | 41008af54cfc2af3a5ea56dff169c95d2b50dda6 (diff) | |
Remove Config#Refresh
Because it has been removed from libgit2:
https://github.com/libgit2/libgit2/commit/55cb4999720f46eddb97e25e7ddc6ac068dd0bae
| -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)) } - |
