pub enum StrategyOption {
Normal,
Ours,
Theirs,
Union,
}Expand description
Merge strategy option for resolving conflicting regions during vendor
merges. These mirror the -X / --strategy-option values accepted by
git merge.
Variants§
Normal
Record conflicts in the index so that checkout produces conflict markers in the working directory (the default).
Ours
Resolve conflicts by taking “ours” (the local side).
Theirs
Resolve conflicts by taking “theirs” (the upstream/vendor side).
Union
Combine both sides, keeping each unique line (union merge).
Implementations§
Source§impl StrategyOption
impl StrategyOption
Sourcepub fn to_file_favor(self) -> FileFavor
pub fn to_file_favor(self) -> FileFavor
Convert to the corresponding git2::FileFavor.
Trait Implementations§
Source§impl Clone for StrategyOption
impl Clone for StrategyOption
Source§fn clone(&self) -> StrategyOption
fn clone(&self) -> StrategyOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrategyOption
impl Debug for StrategyOption
Source§impl Default for StrategyOption
impl Default for StrategyOption
Source§fn default() -> StrategyOption
fn default() -> StrategyOption
Returns the “default value” for a type. Read more
Source§impl ValueEnum for StrategyOption
impl ValueEnum for StrategyOption
impl Copy for StrategyOption
Auto Trait Implementations§
impl Freeze for StrategyOption
impl RefUnwindSafe for StrategyOption
impl Send for StrategyOption
impl Sync for StrategyOption
impl Unpin for StrategyOption
impl UnsafeUnpin for StrategyOption
impl UnwindSafe for StrategyOption
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