git-next/crates/git/src/git_ref.rs

9 lines
228 B
Rust

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