pub enum DotFsckIssue {
TreeSymlink {
tree_oid: ObjectId,
id: &'static str,
detail: &'static str,
},
NonBlobDotFile {
oid: ObjectId,
kind: ObjectKind,
id: &'static str,
detail: &'static str,
},
BlobGitmodules {
blob_oid: ObjectId,
id: &'static str,
detail: String,
},
BlobGitattributes {
blob_oid: ObjectId,
id: &'static str,
detail: &'static str,
},
}Expand description
Problems reported while walking trees / blobs for .gitmodules / .gitattributes fsck.
Variants§
TreeSymlink
Returned when tree symlink.
Fields
NonBlobDotFile
Returned when non blob dot file.
Fields
§
kind: ObjectKindObject type name when known (commit, tree, etc.).
BlobGitmodules
Returned when blob gitmodules.
Fields
BlobGitattributes
Returned when blob gitattributes.
Implementations§
Source§impl DotFsckIssue
impl DotFsckIssue
Sourcepub fn format_line(&self) -> String
pub fn format_line(&self) -> String
Single-line diagnostic matching git fsck (error in tree / warning in blob, etc.).
Sourcepub fn is_error_severity(&self) -> bool
pub fn is_error_severity(&self) -> bool
true when this fsck message is fatal by default (Git treats gitmodulesParse as INFO).
Trait Implementations§
Source§impl Clone for DotFsckIssue
impl Clone for DotFsckIssue
Auto Trait Implementations§
impl Freeze for DotFsckIssue
impl RefUnwindSafe for DotFsckIssue
impl Send for DotFsckIssue
impl Sync for DotFsckIssue
impl Unpin for DotFsckIssue
impl UnsafeUnpin for DotFsckIssue
impl UnwindSafe for DotFsckIssue
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