#[non_exhaustive]pub enum Warning {
Show 31 variants
AmbiguousRefname {
spec: String,
},
DanglingSymref {
name: String,
},
CommitGraphChunkTooSmall {
layer: String,
chunk: String,
},
CommitGraphBloomDisabled {
layer: String,
},
CommitGraphChangedPathIndexTooSmall,
CommitGraphChangedPathChunkTooSmall {
actual: usize,
minimum: usize,
},
CommitGraphChangedPathOffsetOutOfRange {
offset: usize,
position: usize,
graph: String,
chunk_size: usize,
},
CommitGraphChangedPathOffsetsDecreasing {
start: usize,
end: usize,
position_start: usize,
position_end: usize,
graph: String,
},
IgnoredGitDir {
path: PathBuf,
reason: String,
},
CoreBareWithWorktree,
BadBooleanConfig {
key: String,
value: String,
},
SuspiciousSubmoduleName {
name: String,
},
SubmoduleConfigLooksLikeOption {
key: String,
value: String,
},
SubmoduleMultipleConfigs {
commit: String,
name: String,
option: String,
},
GitmodulesBadConfig {
message: String,
},
SplitIndexDisabledWhileConfigEnabled,
SplitIndexEnabledWhileConfigDisabled,
IndexVersionEnvInvalid {
fallback: u32,
},
IndexVersionConfigInvalid {
fallback: u32,
},
MailmapUnreadable {
spec: String,
kind: ObjectKind,
},
ReflogNotWritten {
refname: String,
detail: String,
},
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,
},
}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).
CommitGraphChunkTooSmall
A commit-graph chunk was smaller than required.
Fields
CommitGraphBloomDisabled
Bloom filters were disabled for a commit-graph layer due to incompatible settings.
CommitGraphChangedPathIndexTooSmall
Changed-path Bloom index chunk does not cover all commits in the layer.
CommitGraphChangedPathChunkTooSmall
Changed-path Bloom data chunk header is too small.
Fields
CommitGraphChangedPathOffsetOutOfRange
Changed-path Bloom index entry points past the chunk.
Fields
CommitGraphChangedPathOffsetsDecreasing
Changed-path Bloom index offsets decrease between adjacent entries.
Fields
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
SuspiciousSubmoduleName
Submodule name failed validation.
SubmoduleConfigLooksLikeOption
Submodule config value looked like a command-line flag.
Fields
SubmoduleMultipleConfigs
Duplicate submodule keys in .gitmodules for one commit tree.
Fields
GitmodulesBadConfig
.gitmodules could not be parsed at a given line.
SplitIndexDisabledWhileConfigEnabled
Split index was requested while core.splitIndex disables it.
SplitIndexEnabledWhileConfigDisabled
Split index was disabled on the command line while config enables it.
IndexVersionEnvInvalid
GIT_INDEX_VERSION was set but invalid.
IndexVersionConfigInvalid
index.version in config was invalid.
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
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
Returned when midx checksum mismatch.
MidxIgnoringExistingChecksumMismatch
Returned when midx ignoring existing checksum mismatch.
MidxChunkTableError
Returned when midx chunk table error.
MidxRevIndexWrongSize
Returned when midx rev index wrong size.
MidxBitmapMissingReverseIndex
Returned when midx bitmap missing reverse index.
Returned when midx pack index unavailable.
MidxUnknownPreferredPack
Returned when midx unknown preferred pack.
PackBitmapIgnored
A .bitmap sidecar was present but could not be loaded; reachability falls back without it.