Skip to main content

create_annotated_tag

Function create_annotated_tag 

Source
pub fn create_annotated_tag(
    repo_path: &Path,
    tag_name: &str,
    version: &Version,
) -> Result<(), Error>
Expand description

Creates an annotated git tag at HEAD in repo_path.

Tag message is "crate-seq: version {version}".

ยงErrors

Returns Error::TagCreate if the git subprocess exits non-zero. Returns Error::TempDir if the subprocess cannot be spawned.