pub trait EnsureGitClean {
type Error;
// Required method
fn ensure_git_clean<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
Required Methods§
fn ensure_git_clean<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Implementations on Foreign Types§
Source§impl EnsureGitClean for CrateHandle
impl EnsureGitClean for CrateHandle
Source§impl<P, H> EnsureGitClean for Workspace<P, H>
impl<P, H> EnsureGitClean for Workspace<P, H>
Source§fn ensure_git_clean<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ensure_git_clean<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Checks that the Git working directory is clean:
- If
git status --porcelainreturns any output, we fail. - If there’s no .git folder or
gitisn’t installed, this will also error out.