diff options
| author | David Calavera <[email protected]> | 2014-10-27 07:25:57 -0700 |
|---|---|---|
| committer | David Calavera <[email protected]> | 2014-10-27 07:25:57 -0700 |
| commit | 749d6149b31b17aab4ca58a2e48d73361547fc3e (patch) | |
| tree | efc5c075b9ac818918b388dc402875252a6202e0 /config.go | |
| parent | f6fa1a38abf7be7d4546b736e6db1ae7229e972f (diff) | |
| parent | 99d10775d66ffceca36c1fb0b947d8209f5153f8 (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.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)) } - |
