diff --git a/_posts/2025-08-14-jujutsu-with-radicle.md b/_posts/2025-08-14-jujutsu-with-radicle.md index 7153a0b..de3422e 100644 --- a/_posts/2025-08-14-jujutsu-with-radicle.md +++ b/_posts/2025-08-14-jujutsu-with-radicle.md @@ -53,7 +53,7 @@ and fetch from the repository in Radicle [storage][rip-storage]. This means that I'll need a remote – this is set up for you when you run `rad init` or `rad clone`. This looks like: -```ini +
[remote "rad"] url = rad://z371PVmDHdjJucejRoRYJcDEvD5pp fetch = +refs/heads/*:refs/remotes/rad/* @@ -62,7 +62,7 @@ clone`. This looks like: [branch "master"] remote = rad merge = refs/heads/master -``` +The `rad://` URL tells `git` which [remote helper][git-remote-helpers] to use by trying to find `git-remote-rad`. This will handle fetching/pushing from/to @@ -151,7 +151,7 @@ Committer: Fintan Halpenny < +
$ git show 408133a5e54c80d2398be0c78cccabbd6063902d commit 408133a5e54c80d2398be0c78cccabbd6063902d Author: Fintan Halpenny <fintan.halpenny@radicle.xyz> @@ -166,7 +166,7 @@ the Git repository. At any point where I'm looking to separate changes, I can use `jj new` again, specifying any change to make a new change after the given change: -+$ jj new qx Working copy (@) now at: wmsmovxx c50301c1 (empty) (no description set) Parent commit (@-) : qxuvyurn 408133a5 blog: Radicle and JJ @@ -233,7 +233,7 @@ my history clean and linear. The final piece of the puzzle, at least for my workflow, is `jj rebase`. I can move around changes and put them on top of a destination change: -+$ jj rebase -d qx -r sm Working copy (@) now at: smvvuqzo 420180e8 blog: relevant blog material Parent commit (@-) : qxuvyurn 1e2b0ccc blog: Radicle and JJ @@ -255,7 +255,7 @@ cribbed it from him. Here is my user config, and we'll discuss a couple of the entries, and I'll leave the rest as homework. -```toml +[aliases] dlog = ["log", "-r"] l = ["log", "-r", "(trunk()..@):: | (trunk()..@)-"] @@ -281,7 +281,7 @@ tug = [ conflicts() | \ (empty() ~ merges()) | \ description('substring-i:\"DO NOT MAIL\"')" -``` +- `fresh`: this allows me to have an alias for `jj new master@rad` and use `jj fresh`. @@ -363,7 +363,7 @@ that I should integrate into the patch. From here, I can find the patch using `rad patch`: -+$ rad patch ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ ● ID Title Author Reviews Head + - Updated │ @@ -388,68 +388,69 @@ Let's say I received feedback on my `Canonical References` patch, I can use its$ rad patch show c54883e -╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Title Canonical References │ -│ Patch c54883e5ffb1f8a99f432e3ac79c0b728cd0dab3 │ -│ Author fintohaps z6Mkire…SQZ3voM │ -│ Head 34014a67b0ddc859d95e17ffc71c1ae61aff5758 │ -│ Branches patch/c54883e, sync-goal │ -│ Commits ahead 6, behind 49 │ -│ Status open │ -│ │ -│ See RIP-0004[^0] for the specification. │ -│ │ -│ This patch is an implementation of RIP-0004. It implements the rules mechanism │ -│ within the `rules` module. This is interplays with the existing `canonical` │ -│ mechanisms, already defined (but slightly refactored). │ -│ │ -│ The `rules` are then used in pushing and fetching references. A test is added to │ -│ illustrate the canonical references in action via tags. │ -│ │ -│ There were some incidental changes that were made to ensure the tags use case is │ -│ easy for users. The first change was to add a tags refspec to remotes in order │ -│ to easily fetch tags from peers -- as well ensuring those tags do not pollute │ -│ the `refs/tags` namespace in the working copy. │ -│ │ -│ This had a knock on change where there was a bug `libgit2` that didn't allow for │ -│ deleting `multivar` entries, which the new remote setup fell under. This was │ -│ fixed and so we update to `git2-0.19`. │ -│ │ -│ As well this, the `rad id update` command would error if the payload identifier │ -│ was not the project identifier. This would stop adding new payloads to extend │ -│ the identity -- which was needed for introducing canonical references. │ -│ │ -│ [^0]: │ -│ https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3trNYnLWS11cJWC6BbxDs5niGo82/patches/1d1ce874f7c39ecdcd8c318bbae46ffd02fe1ea8?tab=changes │ -├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ 34014a6 radicle: refactor rule matching │ -│ 0e0b77e radicle: add canonical refs to identity │ -│ bbe019c radicle: canonical reference rules │ -│ b3ad6f2 radicle: refactor Canonical │ -│ 04277b4 radicle: store threshold in Canonical │ -│ 312c6a4 meta: relax radicle-git dependencies │ -├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ ● opened by fintohaps z6Mkire…SQZ3voM (3e97837) 10 months ago │ -│ ↑ updated to c1a2cc5787f44c0a835c1deae375be04c399dd7e (58e932c) 9 months ago │ -│ ↑ updated to c55494efc2e780cd6c91a1f90efdae8a3eb1c7ef (1b07774) 8 months ago │ -│ ↑ updated to 583e6b3366c36cc7e67910c29a66750397a60484 (fdd5277) 7 months ago │ -│ ↑ updated to d54ddef216909bdd3e54e33e4f82c45df79c00d3 (f24f9d8) 7 months ago │ -│ ↑ updated to ac48ae6e75d4eaa13daed657eed24dfeabb9be94 (7d8e461) 7 months ago │ -│ ↑ updated to 2b31e460db7451376dc3e346ee02b5fd597fa5c6 (040cfb7) 7 months ago │ -│ ↑ updated to e1c360a1311a0a215bed6eb42e4b0c8c5c44e611 (f0dec88) 6 months ago │ -│ ↑ updated to 492cfbafd31e4bac85ee73af519ddc6254b47f82 (f9cb27f) 4 months ago │ -│ ↑ updated to fbdf18d7683bdac7a76149777eed5cf9bbbf5bd5 (2a64755) 4 months ago │ -│ ↑ updated to 4baf32afd65f2c4b374d8f21fed6877aa804a003 (0cecae6) 4 months ago │ -│ └─ ⋄ reviewed by self (you) 1 month ago │ -│ ↑ updated to d2ebc70caca54a8ba508d72862c1e1c79d718129 (4515d45) 1 month ago │ -│ ↑ updated to 13e9ba641c624db26b6bfe85870daf064f90e9ab (045e465) 1 month ago │ -│ ↑ updated to 47495c408ccf5eec49b61c7bdb339e5f2d695a30 (a6be355) 1 month ago │ -│ ↑ updated to e3bdb65d3adb94360dd3449744792f6ecb1f451f (8d08215) 1 month ago │ -│ └─ ⋄ reviewed by erikli z6MkgFq…FGAnBGz 1 month ago │ -│ ↑ updated to 9f779028704b4c022cbe25c0e4a9bb46dc8463ba (49fcea7) 1 month ago │ -│ ↑ updated to 86ebfcaaf986edba5e77ede1be4d3c4ce33bd27c (2df7cd9) 1 month ago │ -│ ↑ updated to fa9bdff35d76903f72cf24f1cccca812ae26e98c (34014a6) 1 month ago │ -╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────╮ +│ Title Canonical References │ +│ Patch c54883e5ffb1f8a99f432e3ac79c0b728cd0dab3 │ +│ Author fintohaps z6Mkire…SQZ3voM │ +│ Head 34014a67b0ddc859d95e17ffc71c1ae61aff5758 │ +│ Branches patch/c54883e, sync-goal │ +│ Commits ahead 6, behind 49 │ +│ Status open │ +│ │ +│ See RIP-0004[^0] for the specification. │ +│ │ +│ This patch is an implementation of RIP-0004. It implements the rules mechanism │ +│ within the `rules` module. This is interplays with the existing `canonical` │ +│ mechanisms, already defined (but slightly refactored). │ +│ │ +│ The `rules` are then used in pushing and fetching references. A test is added to │ +│ illustrate the canonical references in action via tags. │ +│ │ +│ There were some incidental changes that were made to ensure the tags use case is │ +│ easy for users. The first change was to add a tags refspec to remotes in order │ +│ to easily fetch tags from peers -- as well ensuring those tags do not pollute │ +│ the `refs/tags` namespace in the working copy. │ +│ │ +│ This had a knock on change where there was a bug `libgit2` that didn't allow for │ +│ deleting `multivar` entries, which the new remote setup fell under. This was │ +│ fixed and so we update to `git2-0.19`. │ +│ │ +│ As well this, the `rad id update` command would error if the payload identifier │ +│ was not the project identifier. This would stop adding new payloads to extend │ +│ the identity -- which was needed for introducing canonical references. │ +│ │ +│ [^0]: │ +│ https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3trNYnLWS11cJWC6BbxDs5niGo82/ │ +│ patches/1d1ce874f7c39ecdcd8c318bbae46ffd02fe1ea8?tab=changes │ +├───────────────────────────────────────────────────────────────────────────────────────┤ +│ 34014a6 radicle: refactor rule matching │ +│ 0e0b77e radicle: add canonical refs to identity │ +│ bbe019c radicle: canonical reference rules │ +│ b3ad6f2 radicle: refactor Canonical │ +│ 04277b4 radicle: store threshold in Canonical │ +│ 312c6a4 meta: relax radicle-git dependencies │ +├───────────────────────────────────────────────────────────────────────────────────────┤ +│ ● opened by fintohaps z6Mkire…SQZ3voM (3e97837) 10 months ago │ +│ ↑ updated to c1a2cc5787f44c0a835c1deae375be04c399dd7e (58e932c) 9 months ago │ +│ ↑ updated to c55494efc2e780cd6c91a1f90efdae8a3eb1c7ef (1b07774) 8 months ago │ +│ ↑ updated to 583e6b3366c36cc7e67910c29a66750397a60484 (fdd5277) 7 months ago │ +│ ↑ updated to d54ddef216909bdd3e54e33e4f82c45df79c00d3 (f24f9d8) 7 months ago │ +│ ↑ updated to ac48ae6e75d4eaa13daed657eed24dfeabb9be94 (7d8e461) 7 months ago │ +│ ↑ updated to 2b31e460db7451376dc3e346ee02b5fd597fa5c6 (040cfb7) 7 months ago │ +│ ↑ updated to e1c360a1311a0a215bed6eb42e4b0c8c5c44e611 (f0dec88) 6 months ago │ +│ ↑ updated to 492cfbafd31e4bac85ee73af519ddc6254b47f82 (f9cb27f) 4 months ago │ +│ ↑ updated to fbdf18d7683bdac7a76149777eed5cf9bbbf5bd5 (2a64755) 4 months ago │ +│ ↑ updated to 4baf32afd65f2c4b374d8f21fed6877aa804a003 (0cecae6) 4 months ago │ +│ └─ ⋄ reviewed by self (you) 1 month ago │ +│ ↑ updated to d2ebc70caca54a8ba508d72862c1e1c79d718129 (4515d45) 1 month ago │ +│ ↑ updated to 13e9ba641c624db26b6bfe85870daf064f90e9ab (045e465) 1 month ago │ +│ ↑ updated to 47495c408ccf5eec49b61c7bdb339e5f2d695a30 (a6be355) 1 month ago │ +│ ↑ updated to e3bdb65d3adb94360dd3449744792f6ecb1f451f (8d08215) 1 month ago │ +│ └─ ⋄ reviewed by erikli z6MkgFq…FGAnBGz 1 month ago │ +│ ↑ updated to 9f779028704b4c022cbe25c0e4a9bb46dc8463ba (49fcea7) 1 month ago │ +│ ↑ updated to 86ebfcaaf986edba5e77ede1be4d3c4ce33bd27c (2df7cd9) 1 month ago │ +│ ↑ updated to fa9bdff35d76903f72cf24f1cccca812ae26e98c (34014a6) 1 month ago │ +╰───────────────────────────────────────────────────────────────────────────────────────╯You can see here how non-perfect my changes are, I'm being vulnerable here. @@ -495,7 +496,7 @@ $ jj new 7322e3ac61669ba6dbde16bb0f7d30edf1ee85ce The way to do this instead, is to use the remote syntax and the special `patches` reference: -+$ jj new patches/3219ef871dd44c7ef51693f4aeba4c2c5c0c5c7b@rad Working copy (@) now at: ooxzsqoy eb9e0803 (empty) (no description set) Parent commit (@-) : swpyssrk 7322e3ac patches/3219ef871dd44c7ef51693f4aeba4c2c5c0c5c7b patches/3219ef871dd44c7ef51693f4aeba4c2c5c0c5c7b@rad | node, cli: remove predefined bootstrap nodes