NewReadOnlyConfig creates a new configuration that returns an error if an attempt to write to the configuration is made.
(workdir, gitdir string)
| 43 | // NewReadOnlyConfig creates a new configuration that returns an error if an |
| 44 | // attempt to write to the configuration is made. |
| 45 | func NewReadOnlyConfig(workdir, gitdir string) *Configuration { |
| 46 | cfg := NewConfig(workdir, gitdir) |
| 47 | cfg.readOnly = true |
| 48 | return cfg |
| 49 | |
| 50 | } |
| 51 | |
| 52 | func ParseConfigLines(lines string, onlySafeKeys bool) *ConfigurationSource { |
| 53 | return &ConfigurationSource{ |