pub enum TreeFavor {
Ours,
Ancestor,
}Available on crate feature
merge only.Expand description
Control how irreconcilable changes to trees should be resolved.
Examples for such issues are:
- we: delete, they: modify
- we: rename, they: rename to something else
- we: delete, they: rename
Use this to control which entries are visible to in the resulting tree. Also note that this does not apply to the many tree-related changes are reconcilable.
Variants§
Ours
Choose our side in case of a conflict. Note that content-merges are still performed according to the FileFavor.
Ancestor
Choose the state of the shared common ancestor, dropping both ours and their changes. Content merges are not performed here.
Trait Implementations§
Source§impl From<TreeFavor> for ResolveWith
impl From<TreeFavor> for ResolveWith
impl Copy for TreeFavor
Auto Trait Implementations§
impl Freeze for TreeFavor
impl RefUnwindSafe for TreeFavor
impl Send for TreeFavor
impl Sync for TreeFavor
impl Unpin for TreeFavor
impl UnwindSafe for TreeFavor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more