MCPcopy Create free account
hub / github.com/git-bug/git-bug / mergeConfig

Function mergeConfig

repository/config.go:74–79  ·  view source on GitHub ↗

mergeConfig is a helper to easily support RepoConfig.AnyConfig() from two separate local and global Config

(local ConfigRead, global ConfigRead)

Source from the content-addressed store, hash-verified

72// mergeConfig is a helper to easily support RepoConfig.AnyConfig()
73// from two separate local and global Config
74func mergeConfig(local ConfigRead, global ConfigRead) *mergedConfig {
75 return &mergedConfig{
76 local: local,
77 global: global,
78 }
79}
80
81var _ ConfigRead = &mergedConfig{}
82

Callers 3

TestMergedConfigFunction · 0.85
AnyConfigMethod · 0.85
AnyConfigMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestMergedConfigFunction · 0.68