aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache_common.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-29 20:51:15 +0200
committerGitHub <noreply@github.com>2020-09-29 20:51:15 +0200
commit1204b66e0cc958c2ca3b328d25cbec347356a046 (patch)
tree852ba5a688eea6872b0885d23dc91342d09b468d /cache/repo_cache_common.go
parent9f3a56b1f34a8b4a7a75357986e967afc4b96611 (diff)
parent4055495c8ba983033459507f3032ca93c6ec006a (diff)
downloadgit-bug-1204b66e0cc958c2ca3b328d25cbec347356a046.tar.gz
Merge pull request #412 from MichaelMure/gogit-repo
repository: go-git backed Repo
Diffstat (limited to 'cache/repo_cache_common.go')
-rw-r--r--cache/repo_cache_common.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/cache/repo_cache_common.go b/cache/repo_cache_common.go
index a931f2be..95e2f7bb 100644
--- a/cache/repo_cache_common.go
+++ b/cache/repo_cache_common.go
@@ -20,11 +20,20 @@ func (c *RepoCache) LocalConfig() repository.Config {
return c.repo.LocalConfig()
}
-// GlobalConfig give access to the git global configuration
+// GlobalConfig give access to the global scoped configuration
func (c *RepoCache) GlobalConfig() repository.Config {
return c.repo.GlobalConfig()
}
+// AnyConfig give access to a merged local/global configuration
+func (c *RepoCache) AnyConfig() repository.ConfigRead {
+ return c.repo.AnyConfig()
+}
+
+func (c *RepoCache) Keyring() repository.Keyring {
+ return c.repo.Keyring()
+}
+
// GetPath returns the path to the repo.
func (c *RepoCache) GetPath() string {
return c.repo.GetPath()