// use crate as git; use derive_more::Display; use git_next_config::newtype; use crate::Commit; newtype!(GitRef is a String, Display); 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()) } }