diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-27 00:54:14 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-09-29 20:42:21 +0200 |
commit | 71b7eb14010be0c7799b4d5394798c89e379891b (patch) | |
tree | f82d4b7bc6be5165c093d4feb18f5ee642c2c3e6 /repository/repo.go | |
parent | c87e9abacfbdc4f221e2e328d4b229d6191f42e9 (diff) | |
download | git-bug-71b7eb14010be0c7799b4d5394798c89e379891b.tar.gz |
repo: implement local/global/any config everywhere
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 6 |
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 |