Files
deb-python-pygit2/docs/config.rst
Carlos Martín Nieto 35386cbec2 Config: switch from foreach iterator
An iterator is much more natural in python, so let's use that.
2014-01-19 17:57:26 +01:00

850 B

Configuration files

pygit2.Repository.config

The Config type

pygit2.Config.get_system_config

pygit2.Config.get_global_config

pygit2.Config.add_file

pygit2.Config.get_multivar

pygit2.Config.set_multivar

The Config Mapping interface.

Iterator

The Config class has an iterator which can be used to loop through all the entries in the configuration. Each element is a tuple containing the name and the value of each configuration variable. Be aware that this may return multiple versions of each entry if they are set multiple times in the configuration files.