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

10 lines
228 B
Rust
Raw Normal View History

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())
}
}