diff options
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/git_config.py b/git_config.py index 282c0802..914b2924 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -145,6 +145,21 @@ class GitConfig(object): | |||
| 145 | except ValueError: | 145 | except ValueError: |
| 146 | return None | 146 | return None |
| 147 | 147 | ||
| 148 | def DumpConfigDict(self): | ||
| 149 | """Returns the current configuration dict. | ||
| 150 | |||
| 151 | Configuration data is information only (e.g. logging) and | ||
| 152 | should not be considered a stable data-source. | ||
| 153 | |||
| 154 | Returns: | ||
| 155 | dict of {<key>, <value>} for git configuration cache. | ||
| 156 | <value> are strings converted by GetString. | ||
| 157 | """ | ||
| 158 | config_dict = {} | ||
| 159 | for key in self._cache: | ||
| 160 | config_dict[key] = self.GetString(key) | ||
| 161 | return config_dict | ||
| 162 | |||
| 148 | def GetBoolean(self, name): | 163 | def GetBoolean(self, name): |
| 149 | """Returns a boolean from the configuration file. | 164 | """Returns a boolean from the configuration file. |
| 150 | None : The value was not defined, or is not a boolean. | 165 | None : The value was not defined, or is not a boolean. |
