pub struct PackBitmapWriter;Expand description
Writes .bitmap sidecars for pack indexes produced by all-into-one repacks.
Implementations§
Source§impl PackBitmapWriter
impl PackBitmapWriter
Sourcepub fn write(
repo: &Repository,
pack_idx_path: &Path,
options: &PackBitmapWriteOptions,
_now: SystemTime,
) -> Result<PathBuf, PackBitmapWriteError>
pub fn write( repo: &Repository, pack_idx_path: &Path, options: &PackBitmapWriteOptions, _now: SystemTime, ) -> Result<PathBuf, PackBitmapWriteError>
Write a reachability bitmap for the pack identified by pack_idx_path.
When no .rev sidecar exists, one is created first so object order matches Git.
§Errors
Returns PackBitmapWriteError::NotClosed when the pack is not the full
reachability closure from the ref tips used for validation.
Auto Trait Implementations§
impl Freeze for PackBitmapWriter
impl RefUnwindSafe for PackBitmapWriter
impl Send for PackBitmapWriter
impl Sync for PackBitmapWriter
impl Unpin for PackBitmapWriter
impl UnsafeUnpin for PackBitmapWriter
impl UnwindSafe for PackBitmapWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more