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

Function EnvironmentOf

config/environment.go:56–58  ·  view source on GitHub ↗

EnvironmentOf creates a new `Environment` initialized with the givne `Fetcher`, "f".

(f Fetcher)

Source from the content-addressed store, hash-verified

54// EnvironmentOf creates a new `Environment` initialized with the givne
55// `Fetcher`, "f".
56func EnvironmentOf(f Fetcher) Environment {
57 return &environment{f}
58}
59
60func (e *environment) Get(key string) (val string, ok bool) {
61 return e.Fetcher.Get(key)

Callers 10

NewURLConfigFunction · 0.85
TestURLConfigFunction · 0.85
NewInFunction · 0.85
readGitConfigMethod · 0.85
NewFromFunction · 0.85
AssertMethod · 0.85

Calls

no outgoing calls

Tested by 6

TestURLConfigFunction · 0.68
AssertMethod · 0.68