pub struct SquashContext {
pub base_oid: String,
pub source_oid: String,
pub target_oid: String,
pub combined_message: String,
pub descendant_oids: Vec<String>,
pub is_fixup: bool,
}Expand description
Extra state carried through a squash-time conflict so that the squash can be finalized after the user resolves the conflicting tree.
Fields§
§base_oid: StringOID of the target commit’s parent (the base for the squash commit).
source_oid: StringOID of the source commit (removed after squash).
target_oid: StringOID of the target commit (author/committer are taken from here).
combined_message: StringThe message to use for the squash commit. For squash this is the combined (target + source) message shown in the editor; for fixup this is just the target message, used as-is without opening an editor.
descendant_oids: Vec<String>OIDs of descendants to rebase after the squash commit is created.
is_fixup: boolWhen true the operation is a fixup: the editor is skipped and
combined_message (the target message) is used directly.
Trait Implementations§
Source§impl Clone for SquashContext
impl Clone for SquashContext
Source§fn clone(&self) -> SquashContext
fn clone(&self) -> SquashContext
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 SquashContext
impl Debug for SquashContext
Source§impl PartialEq for SquashContext
impl PartialEq for SquashContext
impl Eq for SquashContext
impl StructuralPartialEq for SquashContext
Auto Trait Implementations§
impl Freeze for SquashContext
impl RefUnwindSafe for SquashContext
impl Send for SquashContext
impl Sync for SquashContext
impl Unpin for SquashContext
impl UnsafeUnpin for SquashContext
impl UnwindSafe for SquashContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more