pub enum RepoState {
Clean,
Dirty,
Detached,
Unborn,
Bare,
Missing,
}Expand description
Coarse classification of a registered repository’s runtime state. Drives
the state column in TTY output and the state field in the JSON
envelope.
Variants§
Clean
Working tree clean; HEAD on a branch.
Dirty
Working tree has staged, unstaged, or untracked changes.
Detached
HEAD does not point at a branch.
Unborn
Repository initialized but no commits exist yet.
Bare
Bare repository — no working tree.
Missing
Registered path no longer resolves to an accessible git repository.
Trait Implementations§
impl Copy for RepoState
impl Eq for RepoState
impl StructuralPartialEq for RepoState
Auto Trait Implementations§
impl Freeze for RepoState
impl RefUnwindSafe for RepoState
impl Send for RepoState
impl Sync for RepoState
impl Unpin for RepoState
impl UnsafeUnpin for RepoState
impl UnwindSafe for RepoState
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