pub struct WorkingTree;Expand description
Working tree and index status operations.
Uses git status --porcelain=v1 for status classification.
Implementations§
Source§impl WorkingTree
impl WorkingTree
Sourcepub fn path_status(
repo: &Repository,
path: impl AsRef<Path>,
) -> Result<PathChange>
pub fn path_status( repo: &Repository, path: impl AsRef<Path>, ) -> Result<PathChange>
Return the status of a single path in the repository.
Uses git status --porcelain=v1 -- <path>.
Sourcepub fn statuses(repo: &Repository) -> Result<Vec<(PathBuf, PathChange)>>
pub fn statuses(repo: &Repository) -> Result<Vec<(PathBuf, PathChange)>>
Return the status of every file in the working tree that has changed relative to the index or HEAD.
Includes untracked files. Uses git status --porcelain=v1.
Auto Trait Implementations§
impl Freeze for WorkingTree
impl RefUnwindSafe for WorkingTree
impl Send for WorkingTree
impl Sync for WorkingTree
impl Unpin for WorkingTree
impl UnsafeUnpin for WorkingTree
impl UnwindSafe for WorkingTree
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