class documentation
class StackedConfig(Config):
Configuration which reads from multiple config files..
Class Method | default |
Undocumented |
Class Method | default |
Retrieve the default configuration. |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | get |
Retrieve the contents of a configuration setting. |
Method | get |
Retrieve the contents of a multivar configuration setting. |
Method | sections |
Iterate over the sections. |
Method | set |
Set a configuration value. |
Instance Variable | backends |
Undocumented |
Instance Variable | writable |
Undocumented |
Inherited from Config
:
Method | get |
Retrieve a configuration setting as boolean. |
Method | has |
Check if a specified section exists. |
Method | items |
Iterate over the configuration pairs for a specific section. |
Retrieve the default configuration.
See git-config(1) for details on the files searched.
Returns | |
List[ | Undocumented |
Undocumented
Parameters | |
backends:List[ | Undocumented |
writable:Optional[ | Undocumented |
overrides
dulwich.config.Config.get
Retrieve the contents of a configuration setting.
Parameters | |
section:SectionLike | Tuple with section name and optional subsection name |
name:NameLike | Variable name |
Returns | |
Value | Contents of the setting |
Raises | |
KeyError | if the value is not set |
overrides
dulwich.config.Config.get_multivar
Retrieve the contents of a multivar configuration setting.
Parameters | |
section:SectionLike | Tuple with section name and optional subsection namee |
name:NameLike | Variable name |
Returns | |
Iterator[ | Contents of the setting as iterable |
Raises | |
KeyError | if the value is not set |
overrides
dulwich.config.Config.set
Set a configuration value.
Parameters | |
section:SectionLike | Tuple with section name and optional subsection namee |
name:NameLike | Name of the configuration value, including section and optional subsection |
value:Union[ | value of the setting |