2024-05-11 19:46:20 +01:00
|
|
|
use crate::Commit;
|
|
|
|
|
2024-05-12 22:27:20 +01:00
|
|
|
#[derive(Clone, Debug, Hash, PartialEq, Eq, derive_more::Display)]
|
2024-05-15 08:29:41 +01:00
|
|
|
pub struct GitRef(String);
|
2024-05-11 19:46:20 +01:00
|
|
|
impl From<Commit> for GitRef {
|
|
|
|
fn from(value: Commit) -> Self {
|
|
|
|
Self(value.sha().to_string())
|
|
|
|
}
|
|
|
|
}
|