1use thiserror::*;
2
3#[derive(Debug, Error)]
9pub enum GitError {
10 #[error("parse: {0}")]
12 Parse(#[from] gix::url::parse::Error),
13
14 #[error("open: {0}")]
16 Open(#[from] gix::open::Error),
17
18 #[error("clone: {0}")]
20 Clone(#[from] gix::clone::Error),
21
22 #[error("fetch: {0}")]
24 Fetch(#[from] gix::clone::fetch::Error),
25
26 #[error("head tree: {0}")]
28 HeadTree(#[from] gix::reference::head_tree::Error),
29
30 #[error("reference: {0}")]
32 Reference(#[from] gix::refs::name::Error),
33
34 #[error("decode: {0}")]
36 Decode(#[from] gix::diff::object::decode::Error),
37
38 #[error("find: {0}")]
40 Find(#[from] gix::object::find::existing::Error),
41
42 #[error("find with conversion: {0}")]
44 FindWithConversion(#[from] gix::object::find::existing::with_conversion::Error),
45
46 #[error("commit object: {0}")]
48 CommitObject(#[from] gix::object::commit::Error),
49
50 #[error("into: {0}")]
52 Into(#[from] gix::object::try_into::Error),
53}