|
2 | 2 | Configuration files |
3 | 3 | ********************************************************************** |
4 | 4 |
|
5 | | -.. autoattribute:: pygit2.Repository.config |
| 5 | +.. autoclass:: pygit2.Repository |
| 6 | + :members: config |
| 7 | + :noindex: |
6 | 8 |
|
7 | 9 |
|
8 | 10 | The Config type |
9 | 11 | ================ |
10 | 12 |
|
11 | | -.. automethod:: pygit2.Config.get_system_config |
12 | | -.. automethod:: pygit2.Config.get_global_config |
13 | | -.. automethod:: pygit2.Config.add_file |
14 | | -.. automethod:: pygit2.Config.get_multivar |
15 | | -.. automethod:: pygit2.Config.set_multivar |
16 | | - |
17 | | -.. method:: Config.__iter__() |
18 | | - |
19 | | - The :class:`Config` class has an iterator which can be used to loop |
20 | | - through all the entries in the configuration. Each element is a |
21 | | - ``ConfigEntry`` object containing the name, level, and value of each |
22 | | - configuration variable. Be aware that this may return multiple versions of |
23 | | - each entry if they are set multiple times in the configuration files. |
24 | | - |
25 | | -.. currentmodule:: pygit2 |
26 | | - |
27 | | -The :class:`Config` Mapping interface. |
28 | | - |
29 | | -When using the mapping interface, the value is returned as a |
30 | | -string. In order to apply the git-config parsing rules, you can use |
31 | | -:meth:`Config.get_bool` or :meth:`Config.get_int`. |
32 | | - |
33 | | -.. automethod:: pygit2.Config.get_bool |
34 | | -.. automethod:: pygit2.Config.get_int |
| 13 | +.. autoclass:: pygit2.Config |
| 14 | + :members: |
| 15 | + :undoc-members: |
| 16 | + :special-members: __contains__, __delitem__, __getitem__, __iter__, __setitem__ |
35 | 17 |
|
36 | 18 |
|
37 | 19 | The ConfigEntry type |
38 | 20 | ==================== |
39 | 21 |
|
40 | | -.. autoattribute:: pygit2.config.ConfigEntry.name |
41 | | -.. autoattribute:: pygit2.config.ConfigEntry.value |
42 | | -.. autoattribute:: pygit2.config.ConfigEntry.level |
| 22 | +.. autoclass:: pygit2.config.ConfigEntry |
| 23 | + :members: name, value, level |
0 commit comments