pub trait VisitEntry<'index> {
type ContentChange;
type SubmoduleStatus;
// Required method
fn visit_entry(
&mut self,
entries: &'index [Entry],
entry: &'index Entry,
entry_index: usize,
rela_path: &'index BStr,
status: EntryStatus<Self::ContentChange, Self::SubmoduleStatus>,
);
}
Expand description
Observe the status of an entry by comparing an index entry to the worktree.
Required Associated Types§
Sourcetype ContentChange
type ContentChange
Data generated by comparing an entry with a file.
Sourcetype SubmoduleStatus
type SubmoduleStatus
Data obtained when checking the submodule status.
Required Methods§
Sourcefn visit_entry(
&mut self,
entries: &'index [Entry],
entry: &'index Entry,
entry_index: usize,
rela_path: &'index BStr,
status: EntryStatus<Self::ContentChange, Self::SubmoduleStatus>,
)
fn visit_entry( &mut self, entries: &'index [Entry], entry: &'index Entry, entry_index: usize, rela_path: &'index BStr, status: EntryStatus<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
).