use thiserror::Error;
#[derive(Error, Debug)]
pub enum GRError {
#[error(transparent)]
Repository(#[from] git2::Error),
#[error("Could not find the '{0}' tag")]
TagNotFound(String),
#[error("Could not get the tag list")]
TagNameList(git2::Error),
#[error("Both tags are pointing at the same commit")]
TwinTags,
#[error("Could not get the url of the repository at '{0}'")]
URLError(String),
}