pub struct DotFsckTracker {
pub gitmodules_found: HashSet<ObjectId>,
pub gitmodules_done: HashSet<ObjectId>,
pub gitattributes_found: HashSet<ObjectId>,
pub gitattributes_done: HashSet<ObjectId>,
}Expand description
Tracks .gitmodules / .gitattributes blob OIDs discovered in trees (Git fsck_options oidsets).
Fields§
§gitmodules_found: HashSet<ObjectId>§gitmodules_done: HashSet<ObjectId>§gitattributes_found: HashSet<ObjectId>§gitattributes_done: HashSet<ObjectId>Implementations§
Source§impl DotFsckTracker
impl DotFsckTracker
Sourcepub fn on_tree(
&mut self,
tree_oid: &ObjectId,
data: &[u8],
) -> Result<Vec<DotFsckIssue>>
pub fn on_tree( &mut self, tree_oid: &ObjectId, data: &[u8], ) -> Result<Vec<DotFsckIssue>>
Run per-tree registration and symlink checks (fsck_tree entry loop).
Sourcepub fn on_object(
&mut self,
oid: &ObjectId,
kind: ObjectKind,
data: &[u8],
) -> Vec<DotFsckIssue>
pub fn on_object( &mut self, oid: &ObjectId, kind: ObjectKind, data: &[u8], ) -> Vec<DotFsckIssue>
Run per-object blob checks when an OID is validated (fsck_blob).
Sourcepub fn finish_pending(&mut self, odb: &Odb) -> Result<Vec<DotFsckIssue>>
pub fn finish_pending(&mut self, odb: &Odb) -> Result<Vec<DotFsckIssue>>
Validate any registered blobs that were not reached during the main walk (fsck_finish / fsck_blobs).
Sourcepub fn finish_pending_resolve<F>(
&mut self,
resolve: F,
) -> Result<Vec<DotFsckIssue>>
pub fn finish_pending_resolve<F>( &mut self, resolve: F, ) -> Result<Vec<DotFsckIssue>>
Like Self::finish_pending, but resolves object bytes via resolve (e.g. in-memory pack map).
Trait Implementations§
Source§impl Debug for DotFsckTracker
impl Debug for DotFsckTracker
Source§impl Default for DotFsckTracker
impl Default for DotFsckTracker
Source§fn default() -> DotFsckTracker
fn default() -> DotFsckTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DotFsckTracker
impl RefUnwindSafe for DotFsckTracker
impl Send for DotFsckTracker
impl Sync for DotFsckTracker
impl Unpin for DotFsckTracker
impl UnsafeUnpin for DotFsckTracker
impl UnwindSafe for DotFsckTracker
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