MCPcopy
hub / github.com/git-lfs/git-lfs / Load

Method Load

config/delayed_environment.go:59–68  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

57//
58// Load is safe to call across multiple goroutines.
59func (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}

Callers 7

GetMethod · 0.95
GetAllMethod · 0.95
BoolMethod · 0.95
IntMethod · 0.95
AllMethod · 0.95
cleanupTmpMethod · 0.80
loadGitConfigMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected