pub struct GitRunner { /* private fields */ }Implementations§
Source§impl GitRunner
impl GitRunner
pub fn new(git_binary: impl Into<String>) -> Self
pub fn with_env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn git_binary(&self) -> &str
pub fn validate_repo(&self, repo_path: &Path) -> Result<()>
pub fn exec( &self, repo_path: &Path, args: &[String], allow_non_zero: bool, ) -> Result<GitOutput>
pub fn exec_shell( &self, repo_path: &Path, script: &str, allow_non_zero: bool, ) -> Result<GitOutput>
pub fn discover_repo_root(&self, start_path: &Path) -> Result<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitRunner
impl RefUnwindSafe for GitRunner
impl Send for GitRunner
impl Sync for GitRunner
impl Unpin for GitRunner
impl UnsafeUnpin for GitRunner
impl UnwindSafe for GitRunner
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