gix_status::index_as_worktree_with_renames

Trait VisitEntry

Source
pub trait VisitEntry<'a> {
    type ContentChange;
    type SubmoduleStatus;

    // Required method
    fn visit_entry(
        &mut self,
        entry: Entry<'a, Self::ContentChange, Self::SubmoduleStatus>,
    );
}
Available on crate feature worktree-rewrites only.
Expand description

Observe the status of an entry by comparing an index entry to the worktree, along with potential directory walk results.

Required Associated Types§

Source

type ContentChange

Data generated by comparing an entry with a file.

Source

type SubmoduleStatus

Data obtained when checking the submodule status.

Required Methods§

Source

fn visit_entry( &mut self, entry: Entry<'a, Self::ContentChange, Self::SubmoduleStatus>, )

Observe the status of entry at the repository-relative rela_path at entry_index (for accessing entry and surrounding in the complete list of entries).

Implementors§

Source§

impl<'index, T: Send, U: Send> VisitEntry<'index> for Recorder<'index, T, U>