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

Method Bool

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

Bool returns the boolean state associated with a given key, or the value "def", if no value was associated. The "boolean state associated with a given key" is defined as the case-insensitive string comparison with the following: 1) true if... "true", "1", "on", "yes", or "t" 2) false if... "false"

(key string, def bool)

Source from the content-addressed store, hash-verified

29 // 2) false if...
30 // "false", "0", "off", "no", "f", or otherwise.
31 Bool(key string, def bool) (val bool)
32
33 // Int returns the int value associated with a given key, or the value
34 // "def", if no value was associated.

Callers 15

smudgeCommandFunction · 0.65
newUploadContextFunction · 0.65
prePushCommandFunction · 0.65
trackCommandFunction · 0.65
filterCommandFunction · 0.65
GetCredentialHelperMethod · 0.65
BoolMethod · 0.65
BasicTransfersOnlyMethod · 0.65
TusTransfersAllowedMethod · 0.65

Implementers 2

environmentconfig/environment.go
delayedEnvironmentconfig/delayed_environment.go

Calls

no outgoing calls

Tested by 1