pub struct WorkingStatus {
pub branch: Option<String>,
pub drift: Option<Drift>,
pub files: Vec<FileChange>,
}Expand description
Where a repository stands right now.
Fields§
§branch: Option<String>The branch checked out; None on a detached head, which is a
state a person can be in and one a name cannot describe.
drift: Option<Drift>None when the branch tracks no upstream — which is not the
same fact as being level with one.
files: Vec<FileChange>Files that differ from the named base commit (the head commit when the caller names none), untracked ones included, in path order.
Trait Implementations§
Source§impl Clone for WorkingStatus
impl Clone for WorkingStatus
Source§impl Debug for WorkingStatus
impl Debug for WorkingStatus
impl Eq for WorkingStatus
Source§impl PartialEq for WorkingStatus
impl PartialEq for WorkingStatus
impl StructuralPartialEq for WorkingStatus
Auto Trait Implementations§
impl Freeze for WorkingStatus
impl RefUnwindSafe for WorkingStatus
impl Send for WorkingStatus
impl Sync for WorkingStatus
impl Unpin for WorkingStatus
impl UnsafeUnpin for WorkingStatus
impl UnwindSafe for WorkingStatus
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