use std::path::PathBuf; pub type Result = std::result::Result; #[derive(Debug, thiserror::Error)] pub enum Error { #[error(transparent)] Git(#[from] git2::Error), #[error("reading file {path}: {source}")] ReadFile { path: PathBuf, source: std::io::Error, }, #[error("branch {branch} not found")] BranchNotFound { branch: String }, }