Struct git_config::fs::ConfigBuilder [−][src]
pub struct ConfigBuilder { /* fields omitted */ }Implementations
Whether or not to skip reading settings from the system-wide
$(prefix)/etc/gitconfig file. This corresponds to setting the
GIT_CONFIG_NOSYSTEM environment variable.
Whether or not to respect GIT_CONFIG_COUNT, GIT_CONFIG_KEY_<n>, and
GIT_CONFIG_VALUE_<n> environment variables. By default, this is true.
Override the system-wide configuration file location. Providing None
or not calling this method will use the default location.
Override the global (user) configuration file location. Providing
None or not calling this method will use the default location.
Sets where to read the repository-specific configuration file. This
is equivalent to setting GIT_CONFIG. If none is provided, then the
builder will look in the default location, .git/config.
Attempts to build a config, returning error if the environment variable is invalid, if a config file is invalid, or if an overridden config file does not exist. This is only recommended when you have a very controlled system state. Otherwise, this will likely fail more often than you’d like.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more