Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: add sigrefs ref name constructor
Fintan Halpenny committed 2 years ago
commit c06b2258779b78a2317084b8da541cfd0a64d6f0
parent 030419932e79fcf64a3b5a9259725b433932ca93
1 file changed +9 -0
modified radicle/src/git.rs
@@ -200,6 +200,15 @@ pub mod refs {
            IDENTITY_BRANCH.with_namespace(remote.into())
        }

+
        /// Get the branch where the `remote`'s signed references are
+
        /// stored.
+
        ///
+
        /// `refs/namespaces/<remote>/refs/rad/sigrefs`
+
        ///
+
        pub fn sigrefs(remote: &RemoteId) -> Namespaced {
+
            SIGREFS_BRANCH.with_namespace(remote.into())
+
        }
+

        /// The collaborative object reference, identified by `typename` and `object_id`, under the given `remote`.
        ///
        /// `refs/namespaces/<remote>/refs/cobs/<typename>/<object_id>`