#[non_exhaustive]pub enum Warning {
Show 19 variants
AmbiguousRefname {
spec: String,
},
DanglingSymref {
name: String,
},
IgnoredGitDir {
path: PathBuf,
reason: String,
},
CoreBareWithWorktree,
BadBooleanConfig {
key: String,
value: String,
},
MailmapUnreadable {
spec: String,
kind: ObjectKind,
},
ReflogNotWritten {
refname: String,
detail: String,
},
ReflogDateBeforeOldestEntry {
ref_display: String,
cutoff_sec: i64,
},
NonExecutableHookIgnored {
hook_name: String,
hook_path: Option<PathBuf>,
},
HookNotRun {
hook_name: String,
detail: String,
},
MidxChecksumMismatch,
MidxIgnoringExistingChecksumMismatch,
MidxChunkTableError {
detail: String,
},
MidxRevIndexWrongSize,
MidxBitmapMissingReverseIndex,
MidxPackIndexUnavailable {
pack: String,
},
MidxUnknownPreferredPack {
name: String,
},
PackBitmapIgnored {
path: PathBuf,
reason: String,
},
WorktreeAccessFailed {
path: String,
detail: String,
},
}Expand description
A non-fatal condition worth surfacing to the user or an embedder.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AmbiguousRefname
A ref name could mean both a branch/tag ref and an object id prefix.
DanglingSymref
A symbolic ref pointed at a missing or invalid target (except bare HEAD).
IgnoredGitDir
Repository config was skipped because the git directory uses an unsupported format.
Fields
CoreBareWithWorktree
core.bare=true while core.worktree is also set.
BadBooleanConfig
A config value looked boolean but could not be parsed.
Fields
MailmapUnreadable
mailmap.blob (or the bare-repository HEAD:.mailmap default) names an object that
is not a blob; it was skipped.
Fields
kind: ObjectKindKind of the object the revision resolved to.
ReflogNotWritten
A ref was updated but its reflog line could not be appended; the update stands.
Fields
ReflogDateBeforeOldestEntry
Reflog @{date} cutoff is older than every reflog entry; the oldest entry was used.
Fields
NonExecutableHookIgnored
A traditional hook script exists but is not executable.
Fields
HookNotRun
A hook whose outcome does not affect the operation (such as post-commit) could not be
run; the operation already completed.
Fields
MidxChecksumMismatch
Multi-pack-index checksum does not match file contents.
MidxIgnoringExistingChecksumMismatch
Existing on-disk MIDX had a checksum mismatch; grit ignored it and continued.
MidxChunkTableError
Multi-pack-index chunk table is invalid or inconsistent.
MidxRevIndexWrongSize
Reverse index chunk size does not match the MIDX layout.
MidxBitmapMissingReverseIndex
Pack bitmap requires a reverse index that is missing from the MIDX.
A pack named in the MIDX has no readable .idx sidecar.
MidxUnknownPreferredPack
core.midx preferred pack name does not match any pack in the MIDX.
PackBitmapIgnored
A .bitmap sidecar was present but could not be loaded; reachability falls back without it.
Fields
WorktreeAccessFailed
A work-tree path could not be accessed (for example permission denied); the scan continued.
Trait Implementations§
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.