pub enum CompactError {
NoChain,
MissingEndpoint(String),
IdenticalEndpoints,
NotAncestor(String, String),
V1Format,
Other(String),
}Expand description
Failure modes of compact_multi_pack_index, each mapping to one of git’s
user-facing diagnostics in cmd_multi_pack_index_compact.
Variants§
NoChain
--incremental was requested but no chain exists yet.
MissingEndpoint(String)
One of the endpoint checksums does not name a layer in the chain. Carries the
raw argument text so the message matches could not find MIDX: <arg>.
IdenticalEndpoints
Both endpoints resolve to the same layer.
NotAncestor(String, String)
from (argv[0]) is newer than to (argv[1]); git requires from to be an
ancestor of to. Carries (from, to) arg text for the diagnostic.
V1Format
Compaction was requested with the v1 on-disk MIDX format.
Other(String)
Any underlying I/O or parse failure.
Trait Implementations§
Source§impl Debug for CompactError
impl Debug for CompactError
Source§impl Display for CompactError
impl Display for CompactError
Auto Trait Implementations§
impl Freeze for CompactError
impl RefUnwindSafe for CompactError
impl Send for CompactError
impl Sync for CompactError
impl Unpin for CompactError
impl UnsafeUnpin for CompactError
impl UnwindSafe for CompactError
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