aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-24 15:21:34 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-24 15:21:34 +0200
commit666586c5b92b64a64aea22927cfb3754861623a1 (patch)
treefa2e850fbc8a0f694ced781cc1a599a6dce1e535 /cache/repo_cache.go
parenta122d533f6b3e46ab4c79bd39bbb764d59824983 (diff)
downloadgit-bug-666586c5b92b64a64aea22927cfb3754861623a1.tar.gz
repo: add functions to read/write git config
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r--cache/repo_cache.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index a43c6684..0f270909 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -75,6 +75,14 @@ func (c *RepoCache) GetUserEmail() (string, error) {
return c.repo.GetUserEmail()
}
+func (c *RepoCache) StoreConfig(key string, value string) error {
+ return c.repo.StoreConfig(key, value)
+}
+
+func (c *RepoCache) ReadConfigs(keyPrefix string) (map[string]string, error) {
+ return c.repo.ReadConfigs(keyPrefix)
+}
+
func (c *RepoCache) lock() error {
lockPath := repoLockFilePath(c.repo)