git_pack/data/file/decode/
mod.rs

1///
2pub mod entry;
3///
4pub mod header;
5
6/// Returned by [`File::decode_header()`][crate::data::File::decode_header()],
7/// [`File::decode_entry()`][crate::data::File::decode_entry()] and .
8/// [`File::decompress_entry()`][crate::data::File::decompress_entry()]
9#[derive(thiserror::Error, Debug)]
10#[allow(missing_docs)]
11pub enum Error {
12    #[error("Failed to decompress pack entry")]
13    ZlibInflate(#[from] git_features::zlib::inflate::Error),
14    #[error("A delta chain could not be followed as the ref base with id {0} could not be found")]
15    DeltaBaseUnresolved(git_hash::ObjectId),
16}