pub struct GitStatusEntry {
pub path: PathBuf,
pub repo_root: Arc<PathBuf>,
pub conflicted: bool,
pub ignored: bool,
pub index_state: Option<IndexState>,
pub worktree_state: Option<WorktreeState>,
}Expand description
Combined staged + worktree status for a path.
Fields§
§path: PathBuf§repo_root: Arc<PathBuf>Shared repository root; uses Arc to avoid cloning the PathBuf per entry.
conflicted: bool§ignored: bool§index_state: Option<IndexState>§worktree_state: Option<WorktreeState>Implementations§
Source§impl GitStatusEntry
impl GitStatusEntry
Sourcepub fn absolute_path(&self) -> PathBuf
pub fn absolute_path(&self) -> PathBuf
Returns the absolute path of the entry relative to the repository root.
pub fn is_new_in_index(&self) -> bool
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 · 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
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