#[non_exhaustive]pub enum ResolveDiffArgumentsError {
StagedAndUnstaged,
StagedWithRevisions,
UnstagedWithRevisions,
TooManyRevisions,
AgainstWithCommits,
RangeWithSecondRevision,
Message(String),
}Expand description
Invalid grit diff argument combinations or revision parsing failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StagedAndUnstaged
--staged and --unstaged together.
StagedWithRevisions
--staged with commit arguments or --against.
UnstagedWithRevisions
--unstaged with commit arguments or --against.
TooManyRevisions
More than two commit-ish positionals (excluding range syntax in one token).
AgainstWithCommits
--against with commit positionals.
RangeWithSecondRevision
Second positional after a range token should be passed after --.
Message(String)
Underlying revision or pathspec resolution failure.
Trait Implementations§
Source§impl Clone for ResolveDiffArgumentsError
impl Clone for ResolveDiffArgumentsError
Source§impl Debug for ResolveDiffArgumentsError
impl Debug for ResolveDiffArgumentsError
Source§impl Display for ResolveDiffArgumentsError
impl Display for ResolveDiffArgumentsError
impl Eq for ResolveDiffArgumentsError
Source§impl Error for ResolveDiffArgumentsError
impl Error for ResolveDiffArgumentsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for ResolveDiffArgumentsError
impl From<Error> for ResolveDiffArgumentsError
impl StructuralPartialEq for ResolveDiffArgumentsError
Auto Trait Implementations§
impl Freeze for ResolveDiffArgumentsError
impl RefUnwindSafe for ResolveDiffArgumentsError
impl Send for ResolveDiffArgumentsError
impl Sync for ResolveDiffArgumentsError
impl Unpin for ResolveDiffArgumentsError
impl UnsafeUnpin for ResolveDiffArgumentsError
impl UnwindSafe for ResolveDiffArgumentsError
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