pub enum SingleCommitMessageStrategy {
Replace,
Reuse,
}Expand description
Controls how single-commit session branches treat the commit message when
amending HEAD.
Variants§
Replace
Replaces the existing HEAD message with the newly generated message.
Reuse
Keeps the current HEAD message while amending file content only.
Trait Implementations§
Source§impl Clone for SingleCommitMessageStrategy
impl Clone for SingleCommitMessageStrategy
Source§fn clone(&self) -> SingleCommitMessageStrategy
fn clone(&self) -> SingleCommitMessageStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SingleCommitMessageStrategy
Source§impl Debug for SingleCommitMessageStrategy
impl Debug for SingleCommitMessageStrategy
impl Eq for SingleCommitMessageStrategy
impl StructuralPartialEq for SingleCommitMessageStrategy
Auto Trait Implementations§
impl Freeze for SingleCommitMessageStrategy
impl RefUnwindSafe for SingleCommitMessageStrategy
impl Send for SingleCommitMessageStrategy
impl Sync for SingleCommitMessageStrategy
impl Unpin for SingleCommitMessageStrategy
impl UnsafeUnpin for SingleCommitMessageStrategy
impl UnwindSafe for SingleCommitMessageStrategy
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