pub fn create_tag(
_path: &Path,
_tag_name: &str,
_message: &str,
_annotated: bool,
) -> Result<()>Expand description
Creates a new git tag.
§Parameters
path: The path to the git repository.tag_name: The name of the tag to create.message: The tag message (for annotated tags).annotated: Whether to create an annotated tag (true) or lightweight tag (false).
§Returns
Ok(())if the tag was created successfully.Err(Error)if an error occurred during tag creation.