pub trait GitCommands {
type Error: StdError + Send + Sync + 'static;
// Required methods
fn authoritative_head(
&self,
repository: &Path,
branch: &str,
) -> Result<String, Self::Error>;
fn create_tag(
&self,
repository: &Path,
tag: &str,
commit: &str,
author: Author<'_>,
) -> Result<(), Self::Error>;
fn push_tag(&self, repository: &Path, tag: &str) -> Result<(), Self::Error>;
}Expand description
Repository operations used by the release lifecycle.
Required Associated Types§
Required Methods§
Commit branch points at now.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".