// use crate as git; use derive_more::Constructor; use crate::Commit; #[derive(Clone, Constructor, Debug, Hash, PartialEq, Eq, derive_more::Display)] pub struct GitRef(String); impl From for GitRef { fn from(value: Commit) -> Self { Self(value.sha().to_string()) } } impl From for GitRef { fn from(value: git::commit::Sha) -> Self { Self(value.to_string()) } }