pub struct Git { /* private fields */ }Implementations§
Source§impl Git
impl Git
pub fn from_cwd() -> Result<Self, GitError>
pub fn commit<I>( &self, message: &str, other_args: impl IntoIterator<Item = I>, ) -> Command
pub fn log<I>(&self, other_args: impl IntoIterator<Item = I>) -> Command
pub fn log_parsed<I>( &self, other_args: impl IntoIterator<Item = I>, ) -> Result<Vec<LogItem>>
Sourcepub fn add<I>(&self, files: impl IntoIterator<Item = I>) -> Command
pub fn add<I>(&self, files: impl IntoIterator<Item = I>) -> Command
Stages files using git add. Run from the repo root.gs
pub fn less(&self, file: impl AsRef<OsStr>) -> Result<()>
Sourcepub fn directory_untracked_less(&self, dir: &Path) -> Result<()>
pub fn directory_untracked_less(&self, dir: &Path) -> Result<()>
Prints the
pub fn diff_less<I>(&self, files: impl IntoIterator<Item = I>) -> Result<()>
pub fn status(&self) -> Result<GitStatus>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Git
impl RefUnwindSafe for Git
impl Send for Git
impl Sync for Git
impl Unpin 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