use super::struct_::GitVersionDescriptor;
use crate::repositories::models::GitVersionType;
impl GitVersionDescriptor {
pub fn branch(name: impl Into<String>) -> Self {
Self {
version: Some(name.into()),
version_type: Some(GitVersionType::Branch),
version_options: None,
}
}
}