1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
use bstr::BString;
use smallvec::SmallVec;
const MIN_SIZE: usize = 4 + 4 ;
pub type Signature = [u8; 4];
pub struct Iter<'a> {
data: &'a [u8],
pub consumed: usize,
}
pub struct Tree {
pub name: SmallVec<[u8; 23]>,
pub id: git_hash::ObjectId,
pub num_entries: u32,
pub children: Vec<Tree>,
}
pub struct Link {
pub shared_index_checksum: git_hash::ObjectId,
pub bitmaps: Option<link::Bitmaps>,
}
#[allow(dead_code)]
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)]
pub struct FsMonitor {
token: fs_monitor::Token,
entry_dirty: git_bitmap::ewah::Vec,
}
mod iter;
pub(crate) mod fs_monitor;
pub(crate) mod decode;
pub mod tree;
pub(crate) 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 {
use crate::extension::Signature;
pub const SIGNATURE: Signature = *b"sdir";
}