#[non_exhaustive]pub enum CommitGraphSkipReason {
Shallow,
Grafts,
ReplaceRefs,
}Expand description
Why write_commit_graph wrote no graph.
A commit-graph stores each commit’s parents as recorded in the commit object. When the
repository overrides those parents, a graph would disagree with what Git sees: Git
neither writes nor reads a graph in that state, and git fsck rejects one that exists.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shallow
.git/shallow lists boundary commits whose parents are cut off.
Grafts
info/grafts overrides the parents of at least one commit.
ReplaceRefs
Replace refs (refs/replace/) are present and enabled.
Implementations§
Trait Implementations§
Source§impl Clone for CommitGraphSkipReason
impl Clone for CommitGraphSkipReason
impl Copy for CommitGraphSkipReason
Source§impl Debug for CommitGraphSkipReason
impl Debug for CommitGraphSkipReason
impl Eq for CommitGraphSkipReason
Source§impl PartialEq for CommitGraphSkipReason
impl PartialEq for CommitGraphSkipReason
impl StructuralPartialEq for CommitGraphSkipReason
Auto Trait Implementations§
impl Freeze for CommitGraphSkipReason
impl RefUnwindSafe for CommitGraphSkipReason
impl Send for CommitGraphSkipReason
impl Sync for CommitGraphSkipReason
impl Unpin for CommitGraphSkipReason
impl UnsafeUnpin for CommitGraphSkipReason
impl UnwindSafe for CommitGraphSkipReason
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