pub struct Git { /* private fields */ }Expand description
Fixed-operation backend; intentionally no arbitrary arguments/revisions or write API.
Implementations§
Source§impl Git
impl Git
pub fn new(executable: PathBuf) -> Result<Self>
pub fn status(&self, repository: &Path) -> Result<Status>
pub fn diff(&self, repository: &Path, staged: bool, patch: bool) -> Result<Diff>
pub fn selected_patch( &self, repository: &Path, staged: bool, path: &str, original_path: Option<&str>, ) -> Result<String>
Auto Trait Implementations§
impl Forget for Git
impl Freeze for Git
impl Move for Git
impl RefUnwindSafe for Git
impl Send for Git
impl Sync for Git
impl Unpin for Git
impl UnsafeUnpin for Git
impl UnwindSafe for Git
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