pub enum GitState {
Merge,
Rebase,
CherryPick,
Revert,
Bisect,
}Expand description
When a check is relevant, declared rather than reimplemented by every reader.
A CONJUNCTION, not a choice: ruff is .py files AND a ruff config; clippy
is .rs AND Cargo.toml. An earlier design offered these as alternatives
plus a Custom escape hatch, which would have swallowed nearly every check
and left the dashboard knowing nothing.
A git operation that is part-way through.
Detected from the marker files git writes into $GIT_DIR, which is how git
itself and every prompt-writer answers the question.
Variants§
Implementations§
Trait Implementations§
impl Copy for GitState
impl Eq for GitState
impl StructuralPartialEq for GitState
Auto Trait Implementations§
impl Freeze for GitState
impl RefUnwindSafe for GitState
impl Send for GitState
impl Sync for GitState
impl Unpin for GitState
impl UnsafeUnpin for GitState
impl UnwindSafe for GitState
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