aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-27 00:54:14 +0200
committerMichael Muré <batolettre@gmail.com>2020-09-29 20:42:21 +0200
commit71b7eb14010be0c7799b4d5394798c89e379891b (patch)
treef82d4b7bc6be5165c093d4feb18f5ee642c2c3e6 /repository/repo.go
parentc87e9abacfbdc4f221e2e328d4b229d6191f42e9 (diff)
downloadgit-bug-71b7eb14010be0c7799b4d5394798c89e379891b.tar.gz
repo: implement local/global/any config everywhere
Diffstat (limited to 'repository/repo.go')
-rw-r--r--repository/repo.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go
index 6349007b..2eb27e82 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -32,6 +32,12 @@ type ClockedRepo interface {
type RepoConfig interface {
// LocalConfig give access to the repository scoped configuration
LocalConfig() Config
+
+ // GlobalConfig give access to the global scoped configuration
+ GlobalConfig() Config
+
+ // AnyConfig give access to a merged local/global configuration
+ AnyConfig() ConfigRead
}
// RepoKeyring give access to a user-wide storage for secrets