Create a snapshot from this Config object. This means that looking up multiple values will use the same version of the configuration files.
(self)
| 258 | check_error(err) |
| 259 | |
| 260 | def snapshot(self) -> 'Config': |
| 261 | """Create a snapshot from this Config object. |
| 262 | |
| 263 | This means that looking up multiple values will use the same version |
| 264 | of the configuration files. |
| 265 | """ |
| 266 | ccfg = ffi.new('git_config **') |
| 267 | err = C.git_config_snapshot(ccfg, self._config) |
| 268 | check_error(err) |
| 269 | |
| 270 | return Config.from_c(self._repo, ccfg[0]) |
| 271 | |
| 272 | # |
| 273 | # Methods to parse a string according to the git-config rules |
nothing calls this directly
no test coverage detected