Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/SantaClaas/gigit. git client
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132use std::path::PathBuf;
/// Anything that can go wrong reading a repository.////// The `gix` error enums are large, so they are boxed: an unboxed variant would/// make every `Result` in the crate pay for the biggest error case.#[derive(Debug, thiserror::Error)]pub enum Error { #[error("no git repository found at or above {}", .path.display())] Discover { path: PathBuf, #[source] source: Box<gix::discover::Error>, },
#[error("could not open the git repository at {}", .path.display())] Open { path: PathBuf, #[source] source: Box<gix::open::Error>, },
#[error("could not read HEAD")] Head(#[source] Box<dyn std::error::Error + Send + Sync>),
#[error("could not list references")] References(#[source] Box<dyn std::error::Error + Send + Sync>),
#[error("could not walk the commit graph")] Graph(#[source] Box<dyn std::error::Error + Send + Sync>),}