pub enum MergeForm {
Squash,
Rebase,
}Expand description
The merge form a landing records: how the commits of a branch reach the trunk.
A Git workflow parameter, changed only through the landing verbs. It selects a form and nothing else: no authority, no checkout mode, and no release path. Both forms keep the trunk linear and write no merge commit.
SATISFIES git:the-merge-form-is-a-landing-parameter
Variants§
Squash
The branch arrives as one commit, so one implementation is one trunk commit.
Rebase
The branch is rebased on the trunk tip and the trunk fast-forwards to it, so every commit arrives with its own message.
Implementations§
Trait Implementations§
impl Copy for MergeForm
Source§impl<'de> Deserialize<'de> for MergeForm
impl<'de> Deserialize<'de> for MergeForm
Source§fn deserialize<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MergeForm
impl StructuralPartialEq for MergeForm
Auto Trait Implementations§
impl Freeze for MergeForm
impl RefUnwindSafe for MergeForm
impl Send for MergeForm
impl Sync for MergeForm
impl Unpin for MergeForm
impl UnsafeUnpin for MergeForm
impl UnwindSafe for MergeForm
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.