MCPcopy Create free account
hub / github.com/cwarden/git-add--interactive / GetConfig

Method GetConfig

internal/git/repository.go:71–77  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

69}
70
71func (r *Repository) GetConfig(key string) (string, error) {
72 output, err := r.RunCommand("config", key)
73 if err != nil {
74 return "", err
75 }
76 return strings.TrimSpace(string(output)), nil
77}
78
79func (r *Repository) GetConfigBool(key string) bool {
80 output, err := r.RunCommand("config", "--bool", key)

Callers 1

ParseDiffMethod · 0.95

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected