Trait gix_worktree::status::VisitEntry
source · pub trait VisitEntry<'index> {
type ContentChange;
// Required method
fn visit_entry(
&mut self,
entry: &'index Entry,
rela_path: &'index BStr,
change: Option<Change<Self::ContentChange>>,
conflict: bool
);
}
Expand description
Observe changes by comparing an index entry to the worktree or another index.
Required Associated Types§
sourcetype ContentChange
type ContentChange
Data generated by comparing an entry with a file.
Required Methods§
sourcefn visit_entry(
&mut self,
entry: &'index Entry,
rela_path: &'index BStr,
change: Option<Change<Self::ContentChange>>,
conflict: bool
)
fn visit_entry( &mut self, entry: &'index Entry, rela_path: &'index BStr, change: Option<Change<Self::ContentChange>>, conflict: bool )
Observe the change
of entry
at the repository-relative rela_path
, indicating whether
or not it has a conflict
.
If change
is None
, there is no change.