diff --git a/radicle-cli/examples/workflow/5-patching-maintainer.md b/radicle-cli/examples/workflow/5-patching-maintainer.md index 28b52f25..068f5dbb 100644 --- a/radicle-cli/examples/workflow/5-patching-maintainer.md +++ b/radicle-cli/examples/workflow/5-patching-maintainer.md @@ -75,9 +75,7 @@ Great, all fixed up, lets merge the code. ``` $ git checkout master Your branch is up to date with 'rad/master'. -$ rad merge 4486280d0dec743d6a1a0c05754f8e40426c681d -Merging 5f0a547 R2 (f6484e0) by z6Mkt67…v4N1tRk into master (f2de534) via fast-forward... -Running `git merge --ff-only f6484e0f43e48a8983b9b39bf9bd4cd889f1d520`... +$ git merge flux-capacitor-power Updating f2de534..f6484e0 Fast-forward README.md | 0 @@ -85,8 +83,7 @@ Fast-forward 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md create mode 100644 REQUIREMENTS.md -✓ Updated master f2de534 -> f6484e0 via fast-forward -✓ Patch state updated, use `git push rad` to publish +$ git push rad master ``` The patch is now merged and closed :). @@ -99,7 +96,7 @@ $ rad patch show 5f0a547 │ Author did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk │ │ Head f6484e0f43e48a8983b9b39bf9bd4cd889f1d520 │ │ Branches flux-capacitor-power, master │ -│ Commits ahead 3, behind 0 │ +│ Commits up to date │ │ Status merged │ │ │ │ See details. │ diff --git a/radicle-cli/src/commands.rs b/radicle-cli/src/commands.rs index 309bcffd..2a43feae 100644 --- a/radicle-cli/src/commands.rs +++ b/radicle-cli/src/commands.rs @@ -26,8 +26,6 @@ pub mod rad_inspect; pub mod rad_issue; #[path = "commands/ls.rs"] pub mod rad_ls; -#[path = "commands/merge.rs"] -pub mod rad_merge; #[path = "commands/node.rs"] pub mod rad_node; #[path = "commands/patch.rs"] diff --git a/radicle-cli/src/commands/help.rs b/radicle-cli/src/commands/help.rs index 0f4671e7..cac16096 100644 --- a/radicle-cli/src/commands/help.rs +++ b/radicle-cli/src/commands/help.rs @@ -25,7 +25,6 @@ const COMMANDS: &[Help] = &[ rad_inspect::HELP, rad_issue::HELP, rad_ls::HELP, - rad_merge::HELP, rad_node::HELP, rad_patch::HELP, rad_path::HELP, diff --git a/radicle-cli/src/commands/merge.rs b/radicle-cli/src/commands/merge.rs deleted file mode 100644 index 62ef574c..00000000 --- a/radicle-cli/src/commands/merge.rs +++ /dev/null @@ -1,402 +0,0 @@ -use std::ffi::OsString; -use std::fmt; -use std::fmt::Write; - -use anyhow::{anyhow, Context}; - -use radicle::cob::patch::{Patch, PatchId, Patches}; -use radicle::git; -use radicle::prelude::*; -use radicle::rad; - -use crate::git::Rev; -use crate::terminal as term; -use crate::terminal::args::{string, Args, Error, Help}; - -pub const HELP: Help = Help { - name: "merge", - description: "Merge a patch", - version: env!("CARGO_PKG_VERSION"), - usage: r#" -Usage - - rad merge [] [