pub fn tag_commit(
    repo_path: &RepoPath,
    commit_id: &CommitId,
    tag: &str,
    message: Option<&str>,
) -> Result<CommitId>Expand description
Tag a commit.
This function will return an Err(…) variant if the tag’s name is
refused by git or if the tag already exists.