Skip to main content

TreeMergeOutput

Struct TreeMergeOutput 

Source
pub struct TreeMergeOutput {
    pub index: Index,
    pub conflict_content: BTreeMap<Vec<u8>, ObjectId>,
    pub result_tree: ObjectId,
    pub touched_paths: HashSet<Vec<u8>>,
    pub rename_conflicts: Vec<RenameRenameConflict>,
    pub directory_rename_conflicts: Vec<DirectoryRenameConflict>,
}
Expand description

Result of merging three trees with optional conflict-marker blobs for checkout.

Fields§

§index: Index

Merged index entries for touched paths (may include unmerged stages).

§conflict_content: BTreeMap<Vec<u8>, ObjectId>

Conflict-marker blob OIDs keyed by path (stage-2 path bytes).

§result_tree: ObjectId

Result tree OID (clean merge layout; conflict paths use stage-0 entries from Self::index).

§touched_paths: HashSet<Vec<u8>>

Repository-relative paths whose merge outcome differs from ours_tree.

§rename_conflicts: Vec<RenameRenameConflict>

Base paths renamed to a different destination on each side, sorted by base path.

Each one leaves the base entry at stage 1 under RenameRenameConflict::base_path, stage 2 under RenameRenameConflict::ours_path and stage 3 under RenameRenameConflict::theirs_path, with the merged content at both destinations.

§directory_rename_conflicts: Vec<DirectoryRenameConflict>

Directory renames that need the user’s attention, sorted by DirectoryRenameConflict::path.

DirectoryRenameConflict::Moved paths also have unmerged index rows; split and blocked directory renames have none, yet still make the merge conflicted.

Trait Implementations§

Source§

impl Debug for TreeMergeOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.