MCPcopy
hub / github.com/mislav/hub / gitGetConfig

Function gitGetConfig

git/git.go:276–284  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

274}
275
276func gitGetConfig(args ...string) (string, error) {
277 configCmd := gitCmd(gitConfigCommand(args)...)
278 output, err := configCmd.Output()
279 if err != nil {
280 return "", fmt.Errorf("Unknown config %s", args[len(args)-1])
281 }
282
283 return firstLine(output), nil
284}
285
286func gitConfig(args ...string) ([]string, error) {
287 configCmd := gitCmd(gitConfigCommand(args)...)

Callers 2

ConfigFunction · 0.85
GlobalConfigFunction · 0.85

Calls 5

gitCmdFunction · 0.85
gitConfigCommandFunction · 0.85
firstLineFunction · 0.85
OutputMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…