forked from kemitix/git-next
9 lines
228 B
Rust
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())
|
|
}
|
|
}
|