use thiserror::Error;
#[derive(Debug, Error)]
pub enum GitError {
#[error("invalid pack file: {0}")]
InvalidPack(String),
#[error("invalid pkt-line: {0}")]
InvalidPktLine(String),
#[error("protocol error: {0}")]
Protocol(String),
#[error("object not found: {0}")]
ObjectNotFound(String),
#[error("storage error: {0}")]
Storage(#[from] guts_storage::StorageError),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
}