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-10 08:42:54 -05:00 committed by Alexis Sellier
parent 34a2d1a9dc
commit 166f7e7cc2
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@ $ rad patch open --message "Define power requirements" --message "See details."
✓ Pushing HEAD to storage...
✓ Analyzing remotes...
master (f2de534) <- z6MknSLStBU8Vi/flux-capacitor-power (3e674d1)
master <- z6MknSLStBU8Vi/flux-capacitor-power (3e674d1)
1 commit(s) ahead, 0 commit(s) behind

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)),