gix_status::index_as_worktree_with_renames

Struct DirwalkContext

Source
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>,

Source§

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>,

Source§

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.