pub struct RepoState {
pub head: HeadState,
pub in_progress: Vec<InProgressOperation>,
pub is_bare: bool,
}Expand description
Full snapshot of a repository’s state.
This is the information that porcelain commands like status need to
display the repository’s current situation.
Fields§
§head: HeadStateCurrent HEAD state.
in_progress: Vec<InProgressOperation>In-progress operations (there can be multiple, e.g. rebase + merge).
is_bare: boolWhether the repository is bare.
Trait Implementations§
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