pub struct MergeOutcome {
pub target: String,
pub source: String,
pub head: CommitId,
pub base: CommitId,
pub kind: MergeKind,
pub changed: Vec<String>,
pub conflicts: Vec<String>,
}Expand description
The result of a successful merge.
Fields§
§target: StringThe branch that was merged into.
source: StringThe branch that was merged from.
head: CommitIdThe target’s head after the merge.
base: CommitIdThe common ancestor the three-way merge was computed against.
kind: MergeKindHow the merge resolved.
changed: Vec<String>Keys the merge changed on the target, sorted ascending.
conflicts: Vec<String>Keys both sides had changed, sorted ascending. Always empty under
MergePolicy::Fail, which errors instead.
Trait Implementations§
Source§impl Clone for MergeOutcome
impl Clone for MergeOutcome
Auto Trait Implementations§
impl Freeze for MergeOutcome
impl RefUnwindSafe for MergeOutcome
impl Send for MergeOutcome
impl Sync for MergeOutcome
impl Unpin for MergeOutcome
impl UnsafeUnpin for MergeOutcome
impl UnwindSafe for MergeOutcome
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