MCPcopy
hub / github.com/github/git-sizer / FullKey

Method FullKey

git/gitconfig.go:81–86  ·  view source on GitHub ↗

FullKey returns the full gitconfig key name for the relative key name `key`.

(key string)

Source from the content-addressed store, hash-verified

79// FullKey returns the full gitconfig key name for the relative key
80// name `key`.
81func (config *Config) FullKey(key string) string {
82 if config.Prefix == "" {
83 return key
84 }
85 return fmt.Sprintf("%s.%s", config.Prefix, key)
86}
87
88// configKeyMatchesPrefix checks whether `key` starts with `prefix` at
89// a component boundary (i.e., at a '.'). If yes, it returns `true`

Callers 1

augmentFromConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected