pub struct IncludeContext {
pub git_dir: Option<PathBuf>,
pub command_line_relative_include_is_error: bool,
pub cwd: PathBuf,
pub pwd: Option<String>,
pub env: Arc<Environment>,
}Expand description
Context for evaluating [includeIf] conditions (gitdir:, onbranch:, hasconfig:).
Fields§
§git_dir: Option<PathBuf>Git directory path used for gitdir: matching (may contain unresolved symlinks).
command_line_relative_include_is_error: boolWhen true, git -c include.path=relative fails instead of ignoring the include.
cwd: PathBufWorking directory for relative include resolution (from Environment::cwd).
pwd: Option<String>Symlink-preserving $PWD for gitdir: matching when set.
env: Arc<Environment>Environment used for ~/ expansion in include paths.
Trait Implementations§
Source§impl Clone for IncludeContext
impl Clone for IncludeContext
Source§impl Debug for IncludeContext
impl Debug for IncludeContext
Auto Trait Implementations§
impl Freeze for IncludeContext
impl RefUnwindSafe for IncludeContext
impl Send for IncludeContext
impl Sync for IncludeContext
impl Unpin for IncludeContext
impl UnsafeUnpin for IncludeContext
impl UnwindSafe for IncludeContext
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