(key, typeSpecifier=None)
| 1059 | |
| 1060 | |
| 1061 | def gitConfig(key, typeSpecifier=None): |
| 1062 | if key not in _gitConfig: |
| 1063 | cmd = ["git", "config"] |
| 1064 | if typeSpecifier: |
| 1065 | cmd += [typeSpecifier] |
| 1066 | cmd += [key] |
| 1067 | s = read_pipe(cmd, ignore_error=True) |
| 1068 | _gitConfig[key] = s.strip() |
| 1069 | return _gitConfig[key] |
| 1070 | |
| 1071 | |
| 1072 | def gitConfigBool(key): |
no test coverage detected