#[non_exhaustive]pub enum ResolveDiffArgumentsError {
StagedAndUnstaged,
StagedWithRevisions,
UnstagedWithRevisions,
TooManyRevisions,
AgainstWithCommits,
RangeWithSecondRevision,
NoWorkTree,
UnresolvedRevision {
spec: String,
source: Box<RevisionError>,
},
NotACommit {
oid: ObjectId,
},
Pathspec(PathspecResolveError),
}Expand description
Invalid grit diff argument combinations or revision parsing failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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 --.
NoWorkTree
A working-tree comparison, or path limits for one, in a repository without a work tree.
UnresolvedRevision
A revision operand does not name an object.
Resolution failures outside the revision area (a damaged object, an unreadable ref) are returned in their own area instead.
NotACommit
A revision (after peeling tags) names a tree or blob instead of a commit.
Pathspec(PathspecResolveError)
A pathspec could not be parsed or normalized.
Trait Implementations§
Source§impl Debug for ResolveDiffArgumentsError
impl Debug for ResolveDiffArgumentsError
Source§impl Display for ResolveDiffArgumentsError
impl Display for ResolveDiffArgumentsError
Source§impl Error for ResolveDiffArgumentsError
impl Error for ResolveDiffArgumentsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()