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
impl crate::Repository {
#[inline]
pub(crate) fn free_buf(&self) -> Vec<u8> {
self.bufs.borrow_mut().pop().unwrap_or_default()
}
#[inline]
pub(crate) fn reuse_buffer(&self, data: &mut Vec<u8>) {
if data.capacity() > 0 {
self.bufs.borrow_mut().push(std::mem::take(data));
}
}
}
mod cache;
mod config;
pub(crate) mod identity;
mod impls;
mod init;
mod location;
mod object;
pub(crate) mod permissions;
mod reference;
mod remote;
mod snapshots;
mod state;
mod thread_safe;
mod worktree;