From 166f7e7cc24db6556847fdc7cedbe360851cad29 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Fri, 10 Mar 2023 08:42:54 -0500 Subject: [PATCH] cli: Minimize patch info on creation Reduce noise when showing patch information to the user on creation by only showing the git branch name and not the commit reference. --- radicle-cli/examples/rad-patch.md | 2 +- radicle-cli/src/commands/patch/create.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/radicle-cli/examples/rad-patch.md b/radicle-cli/examples/rad-patch.md index 2a49b5d8..1d122eb3 100644 --- a/radicle-cli/examples/rad-patch.md +++ b/radicle-cli/examples/rad-patch.md @@ -29,7 +29,7 @@ $ rad patch open --message "Define power requirements" --message "See details." ✓ Pushing HEAD to storage... ✓ Analyzing remotes... -master (f2de534) <- z6MknSL…StBU8Vi/flux-capacitor-power (3e674d1) +master <- z6MknSL…StBU8Vi/flux-capacitor-power (3e674d1) 1 commit(s) ahead, 0 commit(s) behind diff --git a/radicle-cli/src/commands/patch/create.rs b/radicle-cli/src/commands/patch/create.rs index e4f6af42..880b172f 100644 --- a/radicle-cli/src/commands/patch/create.rs +++ b/radicle-cli/src/commands/patch/create.rs @@ -58,9 +58,8 @@ fn show_patch_commit_info( term::blank(); term::info!( - "{} ({}) <- {}/{} ({})", + "{} <- {}/{} ({})", term::format::highlight(target_ref), - term::format::secondary(term::format::oid(*target_oid)), term::format::dim(term::format::node(node_id)), term::format::highlight(branch_name(head_branch)?), term::format::secondary(term::format::oid(head_oid)),