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.
This commit is contained in:
Slack Coder
2023-03-11 18:38:54 +01:00
committed by Alexis Sellier
parent 34a2d1a9dc
commit 166f7e7cc2
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -2
View File
@@ -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)),