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)
| 1070 | |
| 1071 | |
| 1072 | def 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 | |
| 1083 | def gitConfigInt(key): |
no test coverage detected