pub struct SystemRepoIndex { /* private fields */ }Expand description
System adapter for staging paths into a repository index.
Runs git add -- <path> / git ls-files --error-unmatch -- <path> via
std::process::Command, rooted at the repository working directory.
Usage:
ⓘ
let index = SystemRepoIndex::at(repo_root.clone());
index.stage(&repo_root.join(".auths/roots"))?;Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemRepoIndex
impl RefUnwindSafe for SystemRepoIndex
impl Send for SystemRepoIndex
impl Sync for SystemRepoIndex
impl Unpin for SystemRepoIndex
impl UnsafeUnpin for SystemRepoIndex
impl UnwindSafe for SystemRepoIndex
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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