pub struct GitStatusEntry {
pub path: RepoPath,
pub old_path: Option<RepoPath>,
pub status: FileStatus,
pub staged: StageState,
pub index: Option<char>,
pub worktree: Option<char>,
}Expand description
One entry from git status --porcelain=v1 -z.
Fields§
§path: RepoPathCurrent repository-relative path.
old_path: Option<RepoPath>Previous path for a rename or copy.
status: FileStatusStatus represented by the most relevant porcelain column.
staged: StageStateWhether the change is in the index, worktree, or both.
index: Option<char>Raw index status character (X).
worktree: Option<char>Raw worktree status character (Y).
Trait 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
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