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.

Read more in gix-dir.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.