pub struct DirwalkContext<'a> {
pub git_dir_realpath: &'a Path,
pub current_dir: &'a Path,
pub ignore_case_index_lookup: Option<&'a AccelerateLookup<'a>>,
}
Available on crate feature
worktree-rewrites
only.Expand description
All information that is required to perform a dirwalk.
Fields§
§git_dir_realpath: &'a Path
The git_dir
of the parent repository, after a call to gix_path::realpath()
.
It’s used to help us differentiate our own .git
directory from nested unrelated repositories,
which is needed if core.worktree
is used to nest the .git
directory deeper within.
current_dir: &'a Path
The current working directory as returned by gix_fs::current_dir()
to assure it respects core.precomposeUnicode
.
It’s used to produce the realpath of the git-dir of a repository candidate to assure it’s not our own repository.
ignore_case_index_lookup: Option<&'a AccelerateLookup<'a>>
A utility to lookup index entries faster, and deal with ignore-case handling.
Must be set if ignore_case
is true
, or else some entries won’t be found if their case is different.
Auto Trait Implementations§
impl<'a> Freeze for DirwalkContext<'a>
impl<'a> RefUnwindSafe for DirwalkContext<'a>
impl<'a> Send for DirwalkContext<'a>
impl<'a> Sync for DirwalkContext<'a>
impl<'a> Unpin for DirwalkContext<'a>
impl<'a> UnwindSafe for DirwalkContext<'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