FullKey returns the full gitconfig key name for the relative key name `key`.
(key string)
| 79 | // FullKey returns the full gitconfig key name for the relative key |
| 80 | // name `key`. |
| 81 | func (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` |