#[non_exhaustive]pub enum ResolveDiffArgumentsError {
Show 13 variants
StagedAndUnstaged,
StagedWithRevisions,
UnstagedWithRevisions,
TooManyRevisions,
AgainstWithCommits,
RangeWithSecondRevision,
NoWorkTree,
UnresolvedRevision {
spec: String,
source: Box<Error>,
},
NotACommit {
oid: ObjectId,
},
NoMergeBase,
MultipleMergeBases,
Pathspec(PathspecResolveError),
Library(Box<Error>),
}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
Path limits for a working-tree comparison in a repository without a work tree.
UnresolvedRevision
A revision operand does not name an object.
NotACommit
A revision (after peeling tags) names a tree or blob instead of a commit.
NoMergeBase
A three-dot range whose sides share no history.
MultipleMergeBases
A three-dot range whose sides have more than one merge base (criss-cross history).
Pathspec(PathspecResolveError)
A pathspec could not be parsed or normalized.
Library(Box<Error>)
Range endpoint resolution, object reads, or a working-tree pathspec matching nothing
(Error::PathspecNoMatch).
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()