MCPcopy Index your code
hub / github.com/git/git / gitConfigBool

Function gitConfigBool

git-p4.py:1072–1080  ·  view source on GitHub ↗

Return a bool, using git config --bool. It is True only if the variable is set to true, and False if set to false or not present in the config.

(key)

Source from the content-addressed store, hash-verified

1070
1071
1072def gitConfigBool(key):
1073 """Return a bool, using git config --bool. It is True only if the
1074 variable is set to true, and False if set to false or not present
1075 in the config.
1076 """
1077
1078 if key not in _gitConfig:
1079 _gitConfig[key] = gitConfig(key, '--bool') == "true"
1080 return _gitConfig[key]
1081
1082
1083def gitConfigInt(key):

Callers 11

p4PathStartsWithFunction · 0.85
processContentMethod · 0.85
__init__Method · 0.85
checkValidP4UsersMethod · 0.85
edit_templateMethod · 0.85
applyCommitMethod · 0.85
runMethod · 0.85
map_in_clientMethod · 0.85
commitMethod · 0.85
runMethod · 0.85

Calls 1

gitConfigFunction · 0.85

Tested by

no test coverage detected