aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/config/merged.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plumbing/format/config/merged.go b/plumbing/format/config/merged.go
index 3afb063..52f4b68 100644
--- a/plumbing/format/config/merged.go
+++ b/plumbing/format/config/merged.go
@@ -55,6 +55,14 @@ func (m *Merged) SystemConfig() *Config {
return m.ScopedConfig(SystemScope)
}
+func (m *Merged) SetLocalConfig(c *Config) {
+ m.scopedConfigs[LocalScope] = c
+}
+
+func (m *Merged) SetGlobalConfig(c *Config) {
+ m.scopedConfigs[GlobalScope] = c
+}
+
// Config.Section creates the section if it doesn't exist, which is not
// what we want in here.
func (c *Config) hasSection(name string) bool {