pub enum PrunableReason {
AdminNotValidDirectory,
GitdirFileMissing,
GitdirPointsElsewhere,
WorktreePathMissing,
InvalidGitdirFile,
ExplicitMarker,
}Expand description
Why Git marks a linked worktree as prunable in worktree list --porcelain.
Variants§
AdminNotValidDirectory
Admin path is not a directory (not a valid directory).
GitdirFileMissing
<admin>/gitdir is missing (gitdir file does not exist).
GitdirPointsElsewhere
Resolved gitdir target is missing (gitdir file points to non-existent location).
WorktreePathMissing
Working tree root directory is missing while the gitdir file still exists.
InvalidGitdirFile
<admin>/gitdir is empty or unreadable (invalid gitdir file).
ExplicitMarker
<admin>/prunable exists (grit/Git admin marker forcing prune eligibility).
Implementations§
Source§impl PrunableReason
impl PrunableReason
Sourcepub fn porcelain_message(self) -> &'static str
pub fn porcelain_message(self) -> &'static str
Message text after prunable in git worktree list --porcelain.
Trait Implementations§
Source§impl Clone for PrunableReason
impl Clone for PrunableReason
impl Copy for PrunableReason
Source§impl Debug for PrunableReason
impl Debug for PrunableReason
impl Eq for PrunableReason
Source§impl PartialEq for PrunableReason
impl PartialEq for PrunableReason
impl StructuralPartialEq for PrunableReason
Auto Trait Implementations§
impl Freeze for PrunableReason
impl RefUnwindSafe for PrunableReason
impl Send for PrunableReason
impl Sync for PrunableReason
impl Unpin for PrunableReason
impl UnsafeUnpin for PrunableReason
impl UnwindSafe for PrunableReason
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
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
Compare self to
key and return true if they are equal.