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§

source

type ContentChange

Data generated by comparing an entry with a file.

Required Methods§

source

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.

Implementors§

source§

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