use bstr::BString;
use smallvec::SmallVec;
pub const MIN_SIZE: usize = 4 + 4 ;
pub type Signature = [u8; 4];
pub struct Iter<'a> {
data: &'a [u8],
pub consumed: usize,
}
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct Tree {
pub name: SmallVec<[u8; 23]>,
pub id: git_hash::ObjectId,
pub num_entries: Option<u32>,
pub children: Vec<Tree>,
}
#[derive(Clone)]
pub struct Link {
pub shared_index_checksum: git_hash::ObjectId,
pub bitmaps: Option<link::Bitmaps>,
}
#[allow(dead_code)]
#[derive(Clone)]
pub struct UntrackedCache {
identifier: BString,
info_exclude: Option<untracked_cache::OidStat>,
excludes_file: Option<untracked_cache::OidStat>,
exclude_filename_per_dir: BString,
dir_flags: u32,
directories: Vec<untracked_cache::Directory>,
}
#[allow(dead_code)]
#[derive(Clone)]
pub struct FsMonitor {
token: fs_monitor::Token,
entry_dirty: git_bitmap::ewah::Vec,
}
mod iter;
pub(crate) mod fs_monitor;
pub mod decode;
pub mod tree;
pub mod end_of_index_entry;
pub(crate) mod index_entry_offset_table;
pub mod link;
pub(crate) mod resolve_undo;
pub mod untracked_cache;
pub mod sparse;