Struct gix_config::file::includes::conditional::Context
source · pub struct Context<'a> {
pub git_dir: Option<&'a Path>,
pub branch_name: Option<&'a FullNameRef>,
}
Expand description
Options to handle conditional includes like includeIf.<condition>.path
.
Fields§
§git_dir: Option<&'a Path>
The location of the .git directory. If None
, gitdir
conditions cause an error.
Used for conditional includes, e.g. includeIf.gitdir:…
or includeIf:gitdir/i…
.
branch_name: Option<&'a FullNameRef>
The name of the branch that is currently checked out. If None
, onbranch
conditions cause an error.
Used for conditional includes, e.g. includeIf.onbranch:main.…
Trait Implementations§
impl<'a> Copy for Context<'a>
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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