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

Function newGoGitGlobalConfig

repository/gogit_config.go:27–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func newGoGitGlobalConfig() *goGitConfig {
28 // TODO: replace that with go-git native implementation once it's supported
29 // see: https://github.com/go-git/go-git
30 // see: https://github.com/src-d/go-git/issues/760
31
32 return &goGitConfig{
33 ConfigRead: &goGitConfigReader{getConfig: func() (*config.Config, error) {
34 return config.LoadConfig(config.GlobalScope)
35 }},
36 ConfigWrite: &configPanicWriter{},
37 }
38}
39
40var _ ConfigRead = &goGitConfigReader{}
41

Callers 1

GlobalConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected