Struct git_config::file::from_paths::Options
source · [−]pub struct Options<'a> {
pub git_install_dir: Option<&'a Path>,
pub max_depth: u8,
pub error_on_max_depth_exceeded: bool,
pub git_dir: Option<&'a Path>,
pub branch_name: Option<&'a FullNameRef>,
}
Expand description
Options when loading git config using File::from_paths()
.
Fields
git_install_dir: Option<&'a Path>
The location where gitoxide or git is installed
max_depth: u8
The maximum allowed length of the file include chain built by following nested resolve_includes where base level is depth = 0.
error_on_max_depth_exceeded: bool
When max depth is exceeded while following nested included, return an error if true or silently stop following resolve_includes.
Setting this value to false allows to read configuration with cycles, which otherwise always results in an error.
git_dir: Option<&'a Path>
The location of the .git directory
branch_name: Option<&'a FullNameRef>
The name of the branch that is currently checked out
Trait Implementations
impl<'a> Copy for Options<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more