pub struct LoadConfigOptions {
pub include_system: bool,
pub process_includes: bool,
pub command_includes: bool,
pub include_ctx: IncludeContext,
pub diagnostics: Option<DiagnosticsHandle>,
pub repo_caches: Option<Arc<RepoCaches>>,
}Expand description
Options controlling how ConfigSet::load_with_options merges files and includes.
Fields§
§include_system: boolLoad /etc/gitconfig (unless GIT_CONFIG_NOSYSTEM is enabled).
process_includes: boolExpand [include] / [includeIf] while reading file-backed layers.
command_includes: boolExpand includes for synthetic command-line config built from GIT_CONFIG_PARAMETERS.
include_ctx: IncludeContextGit directory and environment used to evaluate [includeIf] conditions.
diagnostics: Option<DiagnosticsHandle>Optional sink for non-fatal config load warnings.
repo_caches: Option<Arc<RepoCaches>>When set, repository-local config is read at most once per crate::repo_caches::RepoCaches handle.
Trait Implementations§
Source§impl Clone for LoadConfigOptions
impl Clone for LoadConfigOptions
Source§impl Debug for LoadConfigOptions
impl Debug for LoadConfigOptions
Auto Trait Implementations§
impl !RefUnwindSafe for LoadConfigOptions
impl !UnwindSafe for LoadConfigOptions
impl Freeze for LoadConfigOptions
impl Send for LoadConfigOptions
impl Sync for LoadConfigOptions
impl Unpin for LoadConfigOptions
impl UnsafeUnpin for LoadConfigOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more