Trait EnsureGitClean

Source
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§

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,

Implementations on Foreign Types§

Source§

impl EnsureGitClean for CrateHandle

Source§

type Error = GitError

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,

Source§

impl<P, H> EnsureGitClean for Workspace<P, H>
where for<'async_trait> P: From<PathBuf> + AsRef<Path> + Clone + Send + Sync + 'async_trait, H: CrateHandleInterface<P> + Send + Sync,

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,

Checks that the Git working directory is clean:

  • If git status --porcelain returns any output, we fail.
  • If there’s no .git folder or git isn’t installed, this will also error out.
Source§

type Error = GitError

Implementors§