Trait git_ref::transaction::RefEditsExt [−][src]
pub trait RefEditsExt<T> where
T: Borrow<RefEdit> + BorrowMut<RefEdit>, {
fn assure_one_name_has_one_edit(&self) -> Result<(), BString>;
fn extend_with_splits_of_symbolic_refs(
&mut self,
find: impl FnMut(PartialNameRef<'_>) -> Option<Target>,
make_entry: impl FnMut(usize, RefEdit) -> T
) -> Result<(), Error>;
fn pre_process(
&mut self,
find: impl FnMut(PartialNameRef<'_>) -> Option<Target>,
make_entry: impl FnMut(usize, RefEdit) -> T
) -> Result<(), Error> { ... }
}
Expand description
An extension trait to perform commonly used operations on edits across different ref stores.
Required methods
fn assure_one_name_has_one_edit(&self) -> Result<(), BString>
fn assure_one_name_has_one_edit(&self) -> Result<(), BString>
Return true if each ref name
has exactly one edit
across multiple ref edits
Split all symbolic refs into updates for the symbolic ref as well as all their referents if the deref
flag is enabled.
Note no action is performed if deref isn’t specified.