Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
chore: remove dead code `parse_remote`
Adrian Duke committed 3 months ago
commit 2033c95b455daedc2d29cf7c122f6c20b6324a53
parent 8dfeffb38b6e8f459e4962f37bcf3f9557d76965
1 file changed +0 -8
modified crates/radicle-cli/src/git.rs
@@ -345,14 +345,6 @@ pub fn check_version() -> Result<Version, anyhow::Error> {
    Ok(git_version)
}

-
/// Parse a remote refspec into a peer id and ref.
-
pub fn parse_remote(refspec: &str) -> Option<(NodeId, &str)> {
-
    refspec
-
        .strip_prefix("refs/remotes/")
-
        .and_then(|s| s.split_once('/'))
-
        .and_then(|(peer, r)| NodeId::from_str(peer).ok().map(|p| (p, r)))
-
}
-

pub fn add_tag(
    repo: &Repository,
    message: &str,