#[non_exhaustive]pub enum DiffError {
Show 13 variants
Apply(ApplyError),
Arguments(ResolveDiffArgumentsError),
FuncnamePattern(FuncnamePatternError),
Pickaxe(PickaxeError),
NoIndex(NoIndexError),
HunkSelection(HunkSelectError),
BlameWorktreeBareRepository,
BlameIgnoreRevUnknown {
rev: String,
},
BlameIgnoreRevsFileOpen {
path: String,
source: Error,
},
BlameIgnoreRevsFileInvalidRev {
path: String,
rev: String,
},
BlameCopyLevelTooHigh {
count: usize,
},
TextconvSpawn {
command: String,
source: Error,
},
TextconvFailed {
command: String,
status: Option<i32>,
},
}Expand description
Diff-area failure: applying patches, selecting hunks by id, and blame inputs.
Surfaced on the umbrella as Error::Diff.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Apply(ApplyError)
Patch application failure.
Arguments(ResolveDiffArgumentsError)
grit diff arguments could not be resolved into a comparison.
FuncnamePattern(FuncnamePatternError)
A diff driver’s function-name pattern does not compile.
Pickaxe(PickaxeError)
A pickaxe (-S / -G) pattern is not a valid regular expression.
NoIndex(NoIndexError)
A --no-index comparison of two filesystem paths failed.
HunkSelection(HunkSelectError)
Partial hunk selection failed outside the stash stack.
BlameWorktreeBareRepository
crate::blame::BlameFinalSource::Worktree was requested in a bare repository.
BlameIgnoreRevUnknown
A blame --ignore-rev did not resolve to a commit.
BlameIgnoreRevsFileOpen
A blame ignore-revs file could not be read.
BlameIgnoreRevsFileInvalidRev
A line in a blame ignore-revs file is not a full-length object id.
Fields
BlameCopyLevelTooHigh
Blame copy detection was asked for more than the three supported levels (-C -C -C).
TextconvSpawn
A diff.<driver>.textconv command could not be started.
Fields
TextconvFailed
A diff.<driver>.textconv command exited unsuccessfully.
Implementations§
Trait Implementations§
Source§impl Error for DiffError
impl Error for DiffError
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()