summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorDavid Calavera <[email protected]>2014-10-27 07:25:57 -0700
committerDavid Calavera <[email protected]>2014-10-27 07:25:57 -0700
commit749d6149b31b17aab4ca58a2e48d73361547fc3e (patch)
treeefc5c075b9ac818918b388dc402875252a6202e0 /config.go
parentf6fa1a38abf7be7d4546b736e6db1ae7229e972f (diff)
parent99d10775d66ffceca36c1fb0b947d8209f5153f8 (diff)
Merge branch 'master' into ls_remote
* master: Update libgit2 submodule. Remove Config#Refresh implemented Index.AddAll, Index.RemoveAll, Index.UpdateAll
Diffstat (limited to 'config.go')
-rw-r--r--config.go13
1 files changed, 0 insertions, 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))
}
-