pub enum SquashableScope {
Group,
Commit,
}Expand description
Controls how the squashable connector indicator is computed.
Determines what the yellow-connector symbol means in the fragmap matrix.
Variants§
Group
A connector is squashable when that specific hunk group pair alone has no intervening touches. This is the granular per-group rule, and is the default for the interactive TUI.
Commit
A connector is squashable only when the entire later commit is fully
squashable into the same single earlier commit. This is a stricter
whole-commit rule, matching the original fragmap tool, and is
the default for --static output.
Trait Implementations§
Source§impl Clone for SquashableScope
impl Clone for SquashableScope
Source§fn clone(&self) -> SquashableScope
fn clone(&self) -> SquashableScope
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 SquashableScope
impl Debug for SquashableScope
Source§impl Default for SquashableScope
impl Default for SquashableScope
Source§fn default() -> SquashableScope
fn default() -> SquashableScope
Returns the “default value” for a type. Read more
Source§impl PartialEq for SquashableScope
impl PartialEq for SquashableScope
Source§impl ValueEnum for SquashableScope
impl ValueEnum for SquashableScope
impl Copy for SquashableScope
impl Eq for SquashableScope
impl StructuralPartialEq for SquashableScope
Auto Trait Implementations§
impl Freeze for SquashableScope
impl RefUnwindSafe for SquashableScope
impl Send for SquashableScope
impl Sync for SquashableScope
impl Unpin for SquashableScope
impl UnsafeUnpin for SquashableScope
impl UnwindSafe for SquashableScope
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