Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use `tmp` namespace for temporary refs during push
Alexis Sellier committed 3 years ago
commit 5ccd74aa8a041d5bd6f2c1cad5f71dd5204c1782
parent 7d68df86d18ed2e2698289cf2e424ab9b5472b6c
1 file changed +3 -3
modified radicle/src/git.rs
@@ -237,11 +237,11 @@ pub mod refs {
        pub mod staging {
            use super::*;

-
            /// Where patches are pushed initially, when they don't have an object-id yet.
+
            /// Where patch heads are pushed initially, before patch creation.
            /// This is a short-lived reference, which is deleted after the patch has been opened.
            /// The `<oid>` is the commit proposed in the patch.
            ///
-
            /// `refs/namespaces/<remote>/refs/patch/heads/<oid>`
+
            /// `refs/namespaces/<remote>/refs/tmp/heads/<oid>`
            ///
            pub fn patch<'a>(remote: &RemoteId, oid: impl Into<Oid>) -> Namespaced<'a> {
                // SAFETY: OIDs are valid reference names and valid path component.
@@ -250,7 +250,7 @@ pub mod refs {
                #[allow(clippy::unwrap_used)]
                let oid = Component::from_refstr(oid).unwrap();

-
                Qualified::from_components(component!("patch"), component!("heads"), Some(oid))
+
                Qualified::from_components(component!("tmp"), component!("heads"), Some(oid))
                    .with_namespace(remote.into())
            }
        }