Struct git_repository::permissions::Config
source · pub struct Config {
pub git_binary: bool,
pub system: bool,
pub git: bool,
pub user: bool,
pub env: bool,
pub includes: bool,
}
Expand description
Configure from which sources git configuration may be loaded.
Note that configuration from inside of the repository is always loaded as it’s definitely required for correctness.
Fields§
§git_binary: bool
The git binary may come with configuration as part of its configuration, and if this is true (default false) we will load the configuration of the git binary, if present and not a duplicate of the ones below.
It’s disable by default as it involves executing the git binary once per execution of the application.
system: bool
Whether to use the system configuration.
This is defined as $(prefix)/etc/gitconfig
on unix.
git: bool
Whether to use the git application configuration.
A platform defined location for where a user’s git application configuration should be located.
If $XDG_CONFIG_HOME
is not set or empty, $HOME/.config/git/config
will be used
on unix.
user: bool
Whether to use the user configuration.
This is usually ~/.gitconfig
on unix.
env: bool
Whether to use the configuration from environment variables.
includes: bool
Whether to follow include files are encountered in loaded configuration,
via include
and includeIf
sections.
Implementations§
Trait Implementations§
source§impl Ord for Config
impl Ord for Config
source§impl PartialEq<Config> for Config
impl PartialEq<Config> for Config
source§impl PartialOrd<Config> for Config
impl PartialOrd<Config> for Config
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more