Load reads and parses the .gitconfig by calling ReadGitConfig. It also sets values on the configuration instance `g.config`. If Load has already been called, this method will bail out early, and return false. Otherwise it will perform the entire parse and return true. Load is safe to call across m
()
| 57 | // |
| 58 | // Load is safe to call across multiple goroutines. |
| 59 | func (e *delayedEnvironment) Load() { |
| 60 | e.loading.Lock() |
| 61 | defer e.loading.Unlock() |
| 62 | |
| 63 | if e.env != nil { |
| 64 | return |
| 65 | } |
| 66 | |
| 67 | e.env = e.callback() |
| 68 | } |
no test coverage detected