pub struct GitStatusEntry {
pub staged: u8,
pub unstaged: u8,
pub flags: u8,
pub oid: GitOid,
pub old_path: String,
pub path: String,
}Expand description
One index/worktree status entry.
Fields§
§staged: u8§unstaged: u8§flags: u8§oid: GitOidThe worktree content hash when the status walk read the file, else zero. A change that leaves the letters alone still moves this.
old_path: StringNon-empty only for renames.
path: StringTrait Implementations§
Source§impl Clone for GitStatusEntry
impl Clone for GitStatusEntry
Source§fn clone(&self) -> GitStatusEntry
fn clone(&self) -> GitStatusEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitStatusEntry
impl Debug for GitStatusEntry
Source§impl Default for GitStatusEntry
impl Default for GitStatusEntry
Source§fn default() -> GitStatusEntry
fn default() -> GitStatusEntry
Returns the “default value” for a type. Read more
impl Eq for GitStatusEntry
Source§impl PartialEq for GitStatusEntry
impl PartialEq for GitStatusEntry
impl StructuralPartialEq for GitStatusEntry
Auto Trait Implementations§
impl Freeze for GitStatusEntry
impl RefUnwindSafe for GitStatusEntry
impl Send for GitStatusEntry
impl Sync for GitStatusEntry
impl Unpin for GitStatusEntry
impl UnsafeUnpin for GitStatusEntry
impl UnwindSafe for GitStatusEntry
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