Enum git_revision::spec::Kind
source · pub enum Kind {
IncludeReachable,
ExcludeReachable,
RangeBetween,
ReachableToMergeBase,
IncludeReachableFromParents,
ExcludeReachableFromParents,
}
Expand description
How to interpret a revision specification, or revspec
.
Variants
IncludeReachable
Include commits reachable from this revision, the default when parsing revision a
for example, i.e. a
and its ancestors.
Example: a
.
ExcludeReachable
Exclude commits reachable from this revision, i.e. a
and its ancestors. Example: ^a
.
RangeBetween
Every commit that is reachable from b
but not from a
. Example: a..b
.
ReachableToMergeBase
Every commit reachable through either a
or b
but no commit that is reachable by both. Example: a...b
.
IncludeReachableFromParents
Include every commit of all parents of a
, but not a
itself. Example: a^@
.
ExcludeReachableFromParents
Exclude every commit of all parents of a
, but not a
itself. Example: a^!
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for Kind
impl Ord for Kind
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Kind> for Kind
impl PartialOrd<Kind> for Kind
sourcefn partial_cmp(&self, other: &Kind) -> Option<Ordering>
fn partial_cmp(&self, other: &Kind) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Kind
impl Eq for Kind
impl StructuralEq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more