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

Struct delayedEnvironment

config/delayed_environment.go:12–16  ·  view source on GitHub ↗

delayedEnvironment is an implementation of the Environment which wraps the legacy behavior of `*config.Configuration.loadGitConfig()`. It is functionally equivalent to call `cfg.loadGitConfig()` before calling methods on the Environment type.

Source from the content-addressed store, hash-verified

10// It is functionally equivalent to call `cfg.loadGitConfig()` before calling
11// methods on the Environment type.
12type delayedEnvironment struct {
13 env Environment
14 loading sync.Mutex
15 callback func() Environment
16}
17
18// Get is shorthand for calling the e.Load(), and then returning
19// `e.env.Get(key)`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected