mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-22 00:31:12 +00:00
Layered library for blob/tree/commit/ref operations without touching the working directory. Four modules: gitobj (primitives), branchstore (key-value on a branch), snapshot (working dir captures), trailerlink (commit message trailers). 56 tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 1e40b3267885
18 lines
394 B
Rust
18 lines
394 B
Rust
use std::path::PathBuf;
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|
|
|
|
#[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 },
|
|
}
|