node: Use stronger types for refs

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-09-13 10:16:05 +02:00
parent a4d2232578
commit e4e4d9dcaa
6 changed files with 41 additions and 33 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
use git_url::Url;
use crate::crypto::Verified;
use crate::git;
use crate::identity::{ProjId, UserId};
use crate::storage::refs;
use crate::storage::{
@@ -96,7 +97,7 @@ impl ReadRepository for MockRepository {
fn reference(
&self,
_user: &UserId,
_reference: &str,
_reference: &git::RefStr,
) -> Result<Option<git2::Reference>, git2::Error> {
todo!()
}
@@ -104,7 +105,7 @@ impl ReadRepository for MockRepository {
fn reference_oid(
&self,
_user: &UserId,
_reference: &str,
_reference: &git::RefStr,
) -> Result<Option<radicle_git_ext::Oid>, git2::Error> {
todo!()
}