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

Function gitConfigInt

git-p4.py:1083–1092  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

1081
1082
1083def gitConfigInt(key):
1084 if key not in _gitConfig:
1085 cmd = ["git", "config", "--int", key]
1086 s = read_pipe(cmd, ignore_error=True)
1087 v = s.strip()
1088 try:
1089 _gitConfig[key] = int(gitConfig(key, '--int'))
1090 except ValueError:
1091 _gitConfig[key] = None
1092 return _gitConfig[key]
1093
1094
1095def gitConfigList(key):

Callers 2

p4_build_cmdFunction · 0.85

Calls 2

read_pipeFunction · 0.85
gitConfigFunction · 0.85

Tested by

no test coverage detected