pub enum FileFavor {
Ours,
Theirs,
}Available on crate feature
merge only.Expand description
Identify how files should be resolved in case of conflicts.
This works for…
- content merges
- binary files
- symlinks (a form of file after all)
Note that that union merges aren’t available as they aren’t available for binaries or symlinks.
Variants§
Ours
Choose our side in case of a conflict. Note that this choice is precise, so ours hunk will only be chosen if they conflict with theirs, so their hunks may still show up in the merged result.
Theirs
Choose their side in case of a conflict. Note that this choice is precise, so ours hunk will only be chosen if they conflict with theirs, so their hunks may still show up in the merged result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileFavor
impl RefUnwindSafe for FileFavor
impl Send for FileFavor
impl Sync for FileFavor
impl Unpin for FileFavor
impl UnwindSafe for FileFavor
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