mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
node: Use stronger types for refs
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -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!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user