From 5c72fe54b89c9f400a8d7b87c0d1a689b89b252e Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 24 Oct 2014 17:22:46 -0700 Subject: [PATCH] Remove Config#Refresh Because it has been removed from libgit2: https://github.com/libgit2/libgit2/commit/55cb4999720f46eddb97e25e7ddc6ac068dd0bae --- config.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/config.go b/config.go index 6b1f093..5bcb0f8 100644 --- a/config.go +++ b/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)) } -