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