pub struct Outcome<'a> {
pub tree_merge: Outcome<'a>,
pub merge_base_tree_id: ObjectId,
pub merge_bases: Option<Vec<ObjectId>>,
pub virtual_merge_bases: Vec<ObjectId>,
}
Expand description
The result of commit()
.
Fields§
§tree_merge: Outcome<'a>
The outcome of the actual tree-merge.
merge_base_tree_id: ObjectId
The tree id of the base commit we used. This is either…
- the single merge-base we found
- the first of multiple merge-bases if
use_first_merge_base
wastrue
. - the merged tree of all merge-bases, which then isn’t linked to an actual commit.
- an empty tree, if
allow_missing_merge_base
is enabled.
merge_bases: Option<Vec<ObjectId>>
The object ids of all the commits which were found to be merge-bases, or None
if there was no merge-base.
virtual_merge_bases: Vec<ObjectId>
A list of virtual commits that were created to merge multiple merge-bases into one, the last one being
the one we used as merge-base for the merge.
As they are not reachable by anything they will be garbage collected, but knowing them provides options.
Would be empty if no virtual commit was needed at all as there was only a single merge-base.
Otherwise, the last commit id is the one with the merge_base_tree_id
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Outcome<'a>
impl<'a> !RefUnwindSafe for Outcome<'a>
impl<'a> !Send for Outcome<'a>
impl<'a> !Sync for Outcome<'a>
impl<'a> Unpin for Outcome<'a>
impl<'a> !UnwindSafe for Outcome<'a>
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