pub enum Range {
All,
Staged,
Changed(String),
Commit(String),
Paths(Vec<String>),
}Variants§
All
Everything.
Staged
The index (pre-commit).
Changed(String)
Working tree and untracked files against a base revision (pre-push).
Commit(String)
What one commit changed (<sha>^..<sha>), judged on the files as they are now (C3).
Paths(Vec<String>)
These repository files, documents or not, as they are on disk or in an overlay
(spec check --path); nothing is compared with a revision.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Range
impl Freeze for Range
impl Move for Range
impl RefUnwindSafe for Range
impl Send for Rangewhere
RawVecInner: Send,
impl Sync for Rangewhere
RawVecInner: Sync,
impl Unpin for Range
impl UnsafeUnpin for Rangewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Rangewhere
RawVecInner: UnwindSafe,
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<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