pub enum DiffRange {
TwoDot,
ThreeDot,
}Expand description
Selects the Git-style revision range semantics used to build a diff.
Given source and target, two-dot syntax (source..target) compares the
materialized source snapshot directly with the materialized target snapshot.
If the refs diverged, the result therefore reflects how both endpoint states
differ from one another.
Three-dot syntax (source...target) first finds the merge base, meaning the
best common ancestor commit from which both refs descended. It then uses
that common snapshot as the graph baseline and compares it with target.
This isolates the target-side changes made since the refs diverged, which is
what merge previews and branch-focused reviews generally need.
collect_operation_diff resolves these semantics before asking Dolt for
table changes and building the block-group graphs consumed by CLI, TUI,
patch-preview, and GenHub callers.
Variants§
TwoDot
Compare the source and target endpoint snapshots directly (source..target).
ThreeDot
Compare the source/target merge base with the target (source...target).
Trait Implementations§
impl Copy for DiffRange
impl Eq for DiffRange
impl StructuralPartialEq for DiffRange
Auto Trait Implementations§
impl Freeze for DiffRange
impl RefUnwindSafe for DiffRange
impl Send for DiffRange
impl Sync for DiffRange
impl Unpin for DiffRange
impl UnsafeUnpin for DiffRange
impl UnwindSafe for DiffRange
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
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§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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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