radicle: custom upstream remote for patches
When creating a new upstream for the patch workflow, the remote name is always
assumed to be rad.
It’s possible for users to use another remote name but still use a rad:// URL
for pushing. To allow for this, the function that creates the upstream entry now
takes a remote name. In the remote helper, rad patch checkout, and rad patch set the remote can be optionally specified and fall back to the rad remote
name as a default.
5 files changed
+48
-14
00639182
→
e130b4dc
modified radicle-cli/src/commands/patch.rs
@@ -38,6 +38,7 @@ use anyhow::anyhow;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -155,8 +156,13 @@ Checkout options
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -269,6 +275,7 @@ pub enum Operation {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -332,6 +339,7 @@ impl Args for Options {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -495,6 +503,11 @@ impl Args for Options {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -523,6 +536,12 @@ impl Args for Options {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -690,6 +709,7 @@ impl Args for Options {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -897,7 +917,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -906,7 +926,13 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/patch/checkout.rs
@@ -14,6 +14,7 @@ use crate::terminal as term;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -97,7 +98,13 @@ pub fn run(
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-remote-helper/src/lib.rs
@@ -90,18 +90,18 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -174,6 +174,8 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified radicle-remote-helper/src/push.rs
@@ -156,6 +156,7 @@ impl FromStr for Command {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -222,6 +223,7 @@ pub fn run(
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -376,6 +378,7 @@ pub fn run(
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -463,7 +466,7 @@ fn patch_open<G: Signer>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/rad.rs
@@ -339,6 +339,7 @@ pub fn setup_patch_upstream<'a>(
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -370,12 +371,7 @@ pub fn setup_patch_upstream<'a>(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|